Skip to content

Commit b245adc

Browse files
committed
tests
1 parent 8822c0b commit b245adc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cypress/e2e/frontend/routes/customer/account/create.cy.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,14 @@ describe('Checks admin cms routes', () => {
3333
cy.get('#advice-validate-cpassword-confirmation').should('include.text', 'Please make sure your passwords match.');
3434
});
3535

36-
it('Submits valid form', () => {
36+
it('Submits valid form with random email', () => {
3737
const randomEmail = generateRandomEmail();
3838
cy.get('#firstname').type('John');
3939
cy.get('#lastname').type('Doe');
4040
cy.get('#email_address').type(randomEmail);
4141
cy.get('#password').type('12345678');
4242
cy.get('#confirmation').type('12345678');
4343
cy.get('#form-validate button[type="submit"]').click();
44-
cy.get('#advice-validate-password-password').should('include.text', 'Please enter more characters or clean leading or trailing spaces.');
45-
cy.get('#advice-validate-cpassword-confirmation').should('include.text', 'Please make sure your passwords match.');
44+
cy.get('.success-msg').should('include.text', 'Thank you for registering with Madison Island.');
4645
});
47-
});
46+
});

0 commit comments

Comments
 (0)