Skip to content

Commit

Permalink
Fix failing e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto authored and sdobz committed Feb 20, 2020
1 parent 8b38b79 commit 291af03
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cypress/integration/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
);

Expand Down

0 comments on commit 291af03

Please sign in to comment.