[arvados] created: 2.7.0-6544-g1c0fbb6e17

git repository hosting git at public.arvados.org
Thu May 9 13:51:57 UTC 2024


        at  1c0fbb6e173cabf66db7ef0ee64e32db19626af4 (commit)


commit 1c0fbb6e173cabf66db7ef0ee64e32db19626af4
Author: Stephen Smith <stephen at curii.com>
Date:   Wed May 8 12:01:51 2024 -0400

    21635: Add checks to wait for banner to close in tooltip test
    
    Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>

diff --git a/services/workbench2/cypress/e2e/banner-tooltip.cy.js b/services/workbench2/cypress/e2e/banner-tooltip.cy.js
index f8100961aa..ba503934bd 100644
--- a/services/workbench2/cypress/e2e/banner-tooltip.cy.js
+++ b/services/workbench2/cypress/e2e/banner-tooltip.cy.js
@@ -80,21 +80,24 @@ describe('Banner / tooltip tests', function () {
         cy.loginAs(adminUser);
         cy.waitForDom();
 
+        cy.waitForDom().get('[data-cy=confirmation-dialog]', {timeout: 10000}).should('be.visible');
         cy.get('[data-cy=confirmation-dialog-ok-btn]').click();
-        cy.waitForDom();
-        cy.get('[data-cy=confirmation-dialog]').should('not.exist');
+        cy.waitForDom().get('[data-cy=confirmation-dialog]', {timeout: 10000}).should('not.exist');
 
         cy.get('[title=Notifications]').click();
         cy.get('li').contains('Restore Banner').click();
 
-        cy.get('[data-cy=confirmation-dialog-ok-btn]').should('be.visible');
+        cy.waitForDom().get('[data-cy=confirmation-dialog-ok-btn]', {timeout: 10000}).should('be.visible');
     });
 
 
     it('should show tooltips and remove tooltips as localStorage key is present', () => {
         cy.loginAs(adminUser);
+        cy.waitForDom();
 
+        cy.waitForDom().get('[data-cy=confirmation-dialog]', {timeout: 10000}).should('be.visible');
         cy.get('[data-cy=confirmation-dialog-ok-btn]').click();
+        cy.waitForDom().get('[data-cy=confirmation-dialog]', {timeout: 10000}).should('not.exist');
 
         cy.contains('This allows you to navigate through the app').should('not.exist'); // This content comes from tooltips.txt
         cy.get('[data-cy=side-panel-tree]').trigger('mouseover');

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list