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 akshah123 committed Feb 14, 2020
1 parent fec5755 commit 21c63d8
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 21c63d8

Please sign in to comment.