forked from chaynHQ/bloom-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
describe('Action handler page should redirect visitor to', () => { | ||
const ACTION_HANDLER_URL = '/action-handler?mode='; | ||
const MODE_VALUE = 'resetPassword'; | ||
|
||
before(() => { | ||
cy.cleanUpTestState(); | ||
}); | ||
|
||
it('reset password page if mode query parameter is resetPassword', () => { | ||
cy.visit(`${ACTION_HANDLER_URL}${MODE_VALUE}`); | ||
cy.checkPageUrl('auth/reset-password'); | ||
}); | ||
it('not found page if mode query parameters has other value', () => { | ||
const modeValue = 'wrongMode'; | ||
cy.visit(`${ACTION_HANDLER_URL}${modeValue}`); | ||
cy.checkPageUrl('404'); | ||
}); | ||
}); |