Skip to content

Instantly share code, notes, and snippets.

@PierreCavalet
Last active May 6, 2020 09:01
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 PierreCavalet/b0f1c6b6d00e35fcc90fb4bae03dfc80 to your computer and use it in GitHub Desktop.
Save PierreCavalet/b0f1c6b6d00e35fcc90fb4bae03dfc80 to your computer and use it in GitHub Desktop.
describe('Login', () => {
it('Should log the user from home page', () => {
cy.visit('https://workshop-cypress-kaliop.netlify.app/')
cy.get('[data-cy="login-link"]').click()
cy.url().should('eq', 'https://workshop-cypress-kaliop.netlify.app/login')
cy.get('[data-cy="login-gif"]').should('exist')
cy.get('[data-cy="email-input"]').type('myemail@email.com')
cy.get('[data-cy="password-input"]').type('*secretPassword*')
cy.get('[data-cy="submit-button"]').click()
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment