[arvados-workbench2] created: 2.5.0-40-gc2a3ebc8

git repository hosting git at public.arvados.org
Mon Feb 20 17:46:08 UTC 2023


        at  c2a3ebc802391295633d91aaea9448e96349a2b7 (commit)


commit c2a3ebc802391295633d91aaea9448e96349a2b7
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Mon Feb 20 14:45:44 2023 -0300

    19836: Test tweaking.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

diff --git a/cypress/integration/banner-tooltip.spec.js b/cypress/integration/banner-tooltip.spec.js
index 16235ccd..e72c7e7e 100644
--- a/cypress/integration/banner-tooltip.spec.js
+++ b/cypress/integration/banner-tooltip.spec.js
@@ -34,24 +34,29 @@ describe('Collection panel tests', function () {
                     .then(function ([bannerCollection]) {
 
                         collectionUUID=bannerCollection.uuid;
-        
+
                         cy.loginAs(adminUser);
-        
+
                         cy.goToPath(`/collections/${bannerCollection.uuid}`);
-        
+
                         cy.get('[data-cy=upload-button]').click();
-        
-                        cy.fixture('files/banner.html').as('banner');
-                        cy.fixture('files/tooltips.txt').as('tooltips');
-                        
+
+                        cy.fixture('files/banner.html', 'utf8').as('banner');
+                        cy.fixture('files/tooltips.txt', 'utf8').as('tooltips');
+
                         cy.getAll('@banner', '@tooltips')
                             .then(([banner, tooltips]) => {
                                 console.log(tooltips)
-                                cy.get('[data-cy=drag-and-drop]').upload(btoa(banner), 'banner.html');
-                                cy.get('[data-cy=drag-and-drop]').upload(btoa(tooltips), 'tooltips.json');
+                                cy.get('[data-cy=drag-and-drop]').upload(banner, 'banner.html');
+                                cy.get('[data-cy=drag-and-drop]').upload(tooltips, 'tooltips.json');
                             });
-  
+
                         cy.get('[data-cy=form-submit-btn]').click();
+                        cy.get('[data-cy=form-submit-btn]').should('not.exist');
+                        cy.get('[data-cy=collection-files-right-panel]')
+                            .contains('banner.html').should('exist');
+                        cy.get('[data-cy=collection-files-right-panel]')
+                            .contains('tooltips.json').should('exist');
                     });
             });
             cy.on('uncaught:exception', (err, runnable) => {console.error(err)});

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list