Skip to content

Instantly share code, notes, and snippets.

@PierreCavalet
Created May 5, 2020 14:55
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/3429120ad647f65df73ead0348610e2a to your computer and use it in GitHub Desktop.
Save PierreCavalet/3429120ad647f65df73ead0348610e2a to your computer and use it in GitHub Desktop.
describe('Signup', () => {
it('Should signup the user', () => {
cy.visit(`https://workshop-cypress-kaliop.netlify.app/signup`)
cy.get(`[data-cy="signup-gif"]`).should('exist')
cy.get('[data-cy="firstname-input"]').type('Jordan')
cy.get('[data-cy="lastname-input"]').type('Jordan')
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()
cy.task('getCode').then((code) => {
cy.get('[data-cy="code-input"]').type(code)
})
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