Commit ae1a62dc authored by Steven Spinelli's avatar Steven Spinelli Committed by Cecilia Vela Gurovic
Browse files

Behat Bug 1804750 user self delete requires current password

removed 2nd user from Background

Change-Id: I8cbb67b4a7b1401fd6ba553d4e3a67ecda220525
parent 365b84b1
@javascript @core
Feature: User self delete requires Current password
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
Scenario: existing user wants to delete their account
Given I log in as "UserA" with password "Kupuh1pa!"
And I choose "Preferences" in "Settings" from user menu
And I wait "1" seconds
When I follow "Delete account"
Then I am on "account/delete.php"
And I should see "If you delete your account, all your content will be deleted permanently. You cannot get it back. Your profile information and your pages will no longer be visible to other users. The content of any forum posts you have written will still be visible, but your name will no longer be displayed."
And I should see "Fields marked by '*' are required."
And I should see "Current password *"
When I set the field "Current password *" to "Kupuh1pa!"
And I press "Delete account"
Then I should see "Your account has been deleted."
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