Skip to content

Instantly share code, notes, and snippets.

@yagudaev
Last active February 25, 2019 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yagudaev/81b9ed942261196b0398a6bb6dd21d20 to your computer and use it in GitHub Desktop.
Save yagudaev/81b9ed942261196b0398a6bb6dd21d20 to your computer and use it in GitHub Desktop.
Testing Your Frontend with Cypress.io Framework
it('A Pro User logs in and sees a thank you message for the first time', () => {
loginWith('new-pro@example.com', 'passsword')
expect(cy.contains('Thank you for supporting us!')).to.exist
})
it('A Pro User logs in and sees and sees a welcome message', () => {
loginWith('old-pro@example.com', 'passsword')
expect(cy.contains('Welcome back John')).to.exist
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment