Commit 2c6ea727 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Behat test for the forgotpassword page (Bug 1460911)"

parents 88cfe7c0 d25aeaa7
@javascript @core @core_account
Feature: Lost username / password
In order to request a reminder of my password or username
As an admin/user
So I can recover an account after forgetting my username or password
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | member |
And I am on homepage
And I follow "Lost username / password"
Scenario: Asking for a username reminder (Bug 1460911)
When I fill in "Email address or username" with "test01@example.com"
And I press "Send request"
Then I should see "You should receive an email shortly with a link you can use to change the password for your account."
Scenario: Asking for a password reset (Bug 1460911)
When I fill in "Email address or username" with "userA"
And I press "Send request"
Then I should see "You should receive an email shortly with a link you can use to change the password for your account."
Scenario: Trying a username or password that doesn't exist (Bug 1460911)
When I fill in "Email address or username" with "nosuchuser"
And I press "Send request"
Then I should see "The email address or username you entered does not match any users for this site"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment