Commit d25aeaa7 authored by Aaron Wells's avatar Aaron Wells Committed by Jinelle Foley-Barnes
Browse files

Behat test for the forgotpassword page (Bug 1460911)

Change-Id: Ib600facce15e4f0e261ff0838d5cf7c29d6db6cf
parent 03abd36b
@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