Skip to content

Instantly share code, notes, and snippets.

@dannyshain
Last active May 25, 2021 21:02
Show Gist options
  • Save dannyshain/e3d2eb7d94f3652e679f4b0df77a6799 to your computer and use it in GitHub Desktop.
Save dannyshain/e3d2eb7d94f3652e679f4b0df77a6799 to your computer and use it in GitHub Desktop.
cy.on('window:confirm', (text) => {
expect(text).to.contains('Would you like to confirm?');
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment