/// describe('Account Registration', () => { before(() => cy.task('clearDatabase')); it('creates an account successfully', () => { cy.registerUser('e2e-testuser@example.com', 'test-pwd'); cy.get('h1').should('contain', 'Registration successful'); }); it('cannot register with an existing email', () => { cy.registerUser('e2e-testuser@example.com', 'plah'); cy.get('#error').should('contain', 'Could not register user'); }); it('cannot register with a wrong domain email', () => { cy.registerUser('e2e-testuser@example.de', 'plah'); cy.get('#error').should('contain', 'Invalid email domain'); }); })