21600: used the force Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii.com>
[arvados.git] / services / workbench2 / cypress / e2e / banner-tooltip.cy.js
index 1a93d83f3138057954ed79c650e8e24ac1a69d2c..b8943912827587cd6184c18071f498add6e0dbe4 100644 (file)
@@ -73,7 +73,7 @@ describe('Banner / tooltip tests', function () {
         cy.get('[data-cy=confirmation-dialog-ok-btn]').click();
 
         cy.get('[title=Notifications]').click({ force: true });
-        cy.get('li').contains('Restore Banner').click();
+        cy.get('[data-cy=restore-banner-li]').click({ force: true });
 
         cy.get('[data-cy=confirmation-dialog-ok-btn]').should('be.visible');
     });
@@ -90,7 +90,7 @@ describe('Banner / tooltip tests', function () {
         cy.get('[data-cy=confirmation-dialog-ok-btn]').click();
 
         cy.get('[title=Notifications]').click();
-        cy.get('li').contains('Disable tooltips').click();
+        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