Sha256: 10d67694c01d589d1f17122abaf3c0ab309de57253976af7377d1c6820b39ac4

Contents?: true

Size: 1.29 KB

Versions: 5

Compression:

Stored size: 1.29 KB

Contents

Feature: User Resetting Password

  Resetting my password as an admin user

  Background:
    Given a configuration of:
    """
      ActiveAdmin.register Post
    """
    And 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?"
    When 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 pasword reset with token "foobarbaz"
    When I go to the admin password reset form with token "foobarbaz"
    And I fill in "Password" 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 pasword reset with token "foobarbaz" but it expires
    When I go to the admin password reset form with token "foobarbaz"
    And I fill in "Password" with "password"
    And I fill in "Password confirmation" with "wrong"
    And I press "Change my password"
    Then I should see "expired"

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
active_administration-0.0.3 features/users/resetting_password.feature
activeadministration-0.0.2 features/users/resetting_password.feature
active_administration-0.0.2 features/users/resetting_password.feature
activeadministration-0.0.1 features/users/resetting_password.feature
active_administration-0.0.1 features/users/resetting_password.feature