21600: added waits everywhere it could possibly matter Arvados-DCO-1.1-Signed-off...
authorLisa Knox <lisaknox83@gmail.com>
Mon, 18 Mar 2024 19:59:49 +0000 (15:59 -0400)
committerLisa Knox <lisaknox83@gmail.com>
Mon, 18 Mar 2024 19:59:49 +0000 (15:59 -0400)
services/workbench2/cypress/e2e/banner-tooltip.cy.js

index f7df7d9742944f43d1476dc68e58b08ef7d5a6bd..3b4a4fac47f2c22543a1d6d18bf139f347d08d25 100644 (file)
@@ -71,30 +71,39 @@ describe('Banner / tooltip tests', function () {
         cy.loginAs(adminUser);
 
         cy.get('[data-cy=confirmation-dialog-ok-btn]').click();
+        cy.waitForDom();
 
-        // cy.get('[title=Notifications]').click({ force: true });
-        // cy.get('[data-cy=restore-banner-li]').click({ force: true });
+        cy.get('[title=Notifications]').click({ force: true });
+        cy.waitForDom();
+        cy.get('[data-cy=restore-banner-li]').click({ force: true });
+        cy.waitForDom();
 
-        // cy.get('[data-cy=confirmation-dialog-ok-btn]').should('be.visible');
+        cy.get('[data-cy=confirmation-dialog-ok-btn]').should('be.visible');
     });
 
 
     it('should show tooltips and remove tooltips as localStorage key is present', () => {
         cy.loginAs(adminUser);
 
-        // cy.get('[data-cy=side-panel-tree]').then(($el) => {
-        //     const el = $el.get(0) //native DOM element
-        //     expect(el._tippy).to.not.be.undefined;
-        // });
+        cy.get('[data-cy=side-panel-tree]').then(($el) => {
+            if(!!$el) {
+                const el = $el.get(0) //native DOM element
+                expect(el._tippy).to.not.be.undefined;
+            }
+        });
 
         cy.get('[data-cy=confirmation-dialog-ok-btn]').click();
+        cy.waitForDom();
 
-        // cy.get('[title=Notifications]').click();
-        // cy.get('[data-cy=disable-tooltip-toggle]').click({ force: true });
+        cy.get('[title=Notifications]').click();
+        cy.waitForDom();
+        cy.get('[data-cy=disable-tooltip-toggle]').click({ force: true });
 
-        // cy.get('[data-cy=side-panel-tree]').then(($el) => {
-        //     const el = $el.get(0) //native DOM element
-        //     expect(el._tippy).to.be.undefined;
-        // });
+        cy.get('[data-cy=side-panel-tree]').then(($el) => {
+            if(!!$el) {
+                const el = $el.get(0) //native DOM element
+                expect(el._tippy).to.be.undefined;
+            }
+        });
     });
 });
\ No newline at end of file