Skip to content

Instantly share code, notes, and snippets.

@rainerhahnekamp
Created August 3, 2021 08:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rainerhahnekamp/800d31e89e7a6b91d8605e55a4dd520d to your computer and use it in GitHub Desktop.
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