Skip to content

Instantly share code, notes, and snippets.

@cyrilletuzi
Created Jun 7, 2021
Embed
What would you like to do?
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