Sha256: a8b98ff55b918b5130469f165c21f7487dfe285cb804cb68a79454ffa0e9170c

Contents?: true

Size: 1.3 KB

Versions: 39

Compression:

Stored size: 1.3 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 password reset with token "foobarbaz"
    When 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
    When 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

39 entries across 39 versions & 4 rubygems

Version Path
activeadmin_addons-1.7.1 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/users/resetting_password.feature
activeadmin_addons-1.7.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/users/resetting_password.feature
activeadmin-1.3.1 features/users/resetting_password.feature
activeadmin_addons-1.6.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/users/resetting_password.feature
activeadmin_addons-1.5.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/features/users/resetting_password.feature
activeadmin-1.3.0 features/users/resetting_password.feature
activeadmin_addons-1.4.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/features/users/resetting_password.feature
activeadmin_addons-1.3.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/users/resetting_password.feature
activeadmin_addons-1.2.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/users/resetting_password.feature
activeadmin-1.2.1 features/users/resetting_password.feature
activeadmin_addons-1.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/users/resetting_password.feature
activeadmin-1.2.0 features/users/resetting_password.feature
activeadmin_addons-1.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/users/resetting_password.feature
yousty-activeadmin-1.0.17.pre features/users/resetting_password.feature
yousty-activeadmin-1.0.16.pre features/users/resetting_password.feature
activeadmin_addons-1.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/users/resetting_password.feature
activeadmin_addons-1.0.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/users/resetting_password.feature
activeadmin_addons-1.0.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/users/resetting_password.feature
activeadmin-1.1.0 features/users/resetting_password.feature
yousty-activeadmin-1.0.15.pre features/users/resetting_password.feature