Last active
May 25, 2021 21:03
-
-
Save dannyshain/937618cf7b2a2ce09b163c6616e1ba7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('should trigger an alert with a message', () => { | |
cy.get('#alert-button').click(); | |
cy.on('window:alert', (text) => { | |
expect(text).to.contains('This is an alert!'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment