Created
June 7, 2021 09:46
-
-
Save cyrilletuzi/f19730bbe520d7b38d754cb9e8adb52e 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('Account', () => { | |
it('should register successfully', () => { | |
const email = `test_${Date.now()}@example.com`; | |
const password = 'test'; | |
cy.visit('/account/register'); | |
cy.get('input[type="email"]').type(email); | |
cy.get('input[type="password"]').type(password); | |
cy.get('button[type="submit"]').click(); | |
cy.url().should('include', '/account/login'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment