-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpasswordReset.feature
37 lines (26 loc) · 1.02 KB
/
passwordReset.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Created with BDD Editor on: 10 May, 2016
#
# Please follow us at @bddeditor AND if you find this tool useful please share with friends and colleagues!
#
Feature: Password Reset
Scenario 1: User requesting for password reset
Given user is at the forgot password page
When user enters valid email
And clicks on "Next"
Then a reset password link is sent to the email address
Scenario 2: User successfully resets password
Given user opens the reset password link
And user enters a "new password"
When user clicks "Next"
Then password is reset
Scenario 3: User resets password using an expired link
Given 30 minutes have passed
And user opens the reset password link
When user enters a "new password"
And clicks "Next"
Then error should be displayed "Your reset password token has expired! Click here to reset password"
Scenario 4: Resetting password using non-existent email
Given user is at the forgot password page
When user enter a non-existing email
And clicks "Next"
Then error should be displayed "Email not found!"