21600: testing wait removal Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii...
[arvados.git] / services / workbench2 / cypress / e2e / banner-tooltip.cy.js
index ffb8b42129a1531905a0ffc31b682e2e621b39e7..1461cf027fd565cc1f45211e4957ae194d6b515a 100644 (file)
@@ -2,7 +2,7 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-describe('Banner / tooltip tests', function () {
+describe.only('Banner / tooltip tests', function () {
     let activeUser;
     let adminUser;
     let collectionUUID;
@@ -73,8 +73,7 @@ describe('Banner / tooltip tests', function () {
         cy.get('[data-cy=confirmation-dialog-ok-btn]').click();
 
         cy.get('[title=Notifications]').click({ force: true });
-        cy.wait(1000);
-        cy.get('li').contains('Restore Banner').click({ force: true });
+        cy.get('li').should('contain', 'Restore Banner').click({ force: true });
 
         cy.get('[data-cy=confirmation-dialog-ok-btn]').should('be.visible');
     });