Skip to content

Commit fff7f4d

Browse files
committed
Test password reset form
1 parent 7612841 commit fff7f4d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
describe('Submit ', () => {
2+
it('login as simple user', () => {
3+
// go to login page
4+
cy.visit('/reset-password')
5+
cy.get('#input-email').type('user@user.com')
6+
cy.get('button[type=submit]').click()
7+
8+
// check form the message of email sent
9+
cy.get('h5').contains('user@user.com')
10+
cy.get('.card-body .text-center p').should('have.length', 2)
11+
})
12+
})

0 commit comments

Comments
 (0)