Created
May 5, 2020 14:55
-
-
Save PierreCavalet/3429120ad647f65df73ead0348610e2a 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
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