File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
cypress/e2e/frontend/routes/customer/account Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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+ } ) ;
You can’t perform that action at this time.
0 commit comments