Commit cc8bb772 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Gerrit Code Review
Browse files

Merge "Behat Bug 1804750 user self delete requires current password removed...

Merge "Behat Bug 1804750 user self delete requires current password removed 2nd user from Background"
parents 26662619 ae1a62dc
@javascript @core
Feature: User self delete requires Current password
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuh1pa! | | 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."
Supports Markdown
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