Sha256: d1a200d5579ce8a68064bff34feae221ff056e2d623b43f128ee42d6e9ad2fac

Contents?: true

Size: 1.23 KB

Versions: 3

Compression:

Stored size: 1.23 KB

Contents

Feature: User Resetting Password

  Resetting my password as an admin user

  Background:
    Given I am logged out
    And an admin user "admin@example.com" exists

  Scenario: Resetting password successfully
    When I go to the dashboard
    And I follow "Forgot your password?"
    And I fill in "Email" with "admin@example.com"
    And I press "Reset My Password"
    Then I should see "You will receive an email with instructions on how to reset your password in a few minutes."

  Scenario: Changing password after resetting
    When "admin@example.com" requests a password reset with token "foobarbaz"
    And I go to the admin password reset form with token "foobarbaz"
    And I fill in the password field with "password"
    And I fill in "Password confirmation" with "password"
    And I press "Change my password"
    Then I should see "success"

  Scenario: Changing password after resetting with errors
    When "admin@example.com" requests a password reset with token "foobarbaz" but it expires
    And I go to the admin password reset form with token "foobarbaz"
    And I fill in the password field with "password"
    And I fill in "Password confirmation" with "wrong"
    And I press "Change my password"
    Then I should see "expired"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activeadmin-rails-1.7.2 features/users/resetting_password.feature
activeadmin-rails-1.7.1 features/users/resetting_password.feature
activeadmin-rails-1.7.0 features/users/resetting_password.feature