change_reset_password.feature 1.3 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
@javascript @core @core_administration
Feature: Changing password through settings
   In order to change the admin password
   As an admin I log in and go to settings
   So I can set up the admin's new password

Scenario: Changing admin password through settings option (Selenium)
    # Log in as admin
    Given I log in as "admin" with password "Password1"
    # Verifying log in was successful
    And I should see "Admin User"
    # Navigating to settings
    And I follow "Settings"
    And I fill in the following:
    | Current password   | Password1 |
    | New password | mahara2 |
    | Confirm password | mahara2 |
    And I press "Save"
    # Verifying the preferences saved
    And I should see "Preferences saved"
    And I follow "Logout"
    # Logging in with the new password
    When I log in as "admin" with password "mahara2"
    # Verifying that the log in was a success
    And I should see "Welcome"
    # Navigating to the settings
    And I follow "Settings"
    And I fill in the following:
    | Current password   | mahara2 |
    | New password | Password1 |
    | Confirm password | Password1 |
    And I press "Save"
    And I follow "Logout"
    # Logging in as admin with the new passsword
    Then I log in as "admin" with password "Password1"
    # Verifying it worked
    And I should see "Welcome"