silverstripe-framework/tests/behat/features/lostpassword.feature

23 lines
953 B
Gherkin
Raw Normal View History

@retry
2013-10-22 00:06:36 +02:00
Feature: Lost Password
As a site owner
I want to be able to reset my password
Using my email
Background:
2017-10-30 05:30:41 +01:00
Given a "member" "Admin" with "Email"="admin@example.org"
2013-10-22 00:06:36 +02:00
Scenario: I can request a password reset by email
Given I go to "Security/login"
When I follow "I've lost my password"
2017-10-30 05:30:41 +01:00
And I fill in "admin@example.org" for "Email"
2013-10-22 00:06:36 +02:00
And I press the "Send me the password reset link" button
2017-10-30 05:30:41 +01:00
Then I should see "A reset link has been sent to 'admin@example.org'"
And there should be an email to "admin@example.org" titled "Your password reset link"
When I click on the "password reset link" link in the email to "admin@example.org"
2013-10-22 00:06:36 +02:00
Then I should see "Please enter a new password"
When I fill in "newpassword" for "New Password"
And I fill in "newpassword" for "Confirm New Password"
And I press the "Change Password" button
2017-10-30 05:30:41 +01:00
Then the password for "admin@example.org" should be "newpassword"