Created
August 3, 2021 08:35
-
-
Save rainerhahnekamp/800d31e89e7a6b91d8605e55a4dd520d 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 fail', () => { | |
let isSuccessful = false; | |
cy.visit(''); | |
cy.get('button').click(); | |
cy.get('div.message').then(() => { | |
isSuccessful = true; | |
}); | |
if (!isSuccessful) { | |
throw new Error('something is not working'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment