From 291af03afe0c0c8c159e490e352fc2bdba2748c1 Mon Sep 17 00:00:00 2001 From: fzaninotto Date: Thu, 13 Feb 2020 12:00:00 +0100 Subject: [PATCH] Fix failing e2e tests --- cypress/integration/edit.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cypress/integration/edit.js b/cypress/integration/edit.js index c8972e13339..069fd31607d 100644 --- a/cypress/integration/edit.js +++ b/cypress/integration/edit.js @@ -191,10 +191,9 @@ describe('Edit Page', () => { .eq(2) .should(el => expect(el).to.contain('f00bar')); - cy.get('div[role="alertdialog"]'); - cy.wait(4000); // Wait for the undo notification to disappear + cy.get('body').click('left'); // dismiss notification - cy.get('div[role="alertdialog"]').should(el => + cy.get('div[role="alert"]').should(el => expect(el).to.have.text('this title cannot be used') );