Skip to content

Instantly share code, notes, and snippets.

@cyrilletuzi
Created June 7, 2021 09:46
Show Gist options
  • Save cyrilletuzi/f19730bbe520d7b38d754cb9e8adb52e to your computer and use it in GitHub Desktop.
Save cyrilletuzi/f19730bbe520d7b38d754cb9e8adb52e to your computer and use it in GitHub Desktop.
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