Sha256: ba53ffdfed6588ed2811220885bb90556b257b5de69d2128555b89bebdc7531d

Contents?: true

Size: 1.28 KB

Versions: 7

Compression:

Stored size: 1.28 KB

Contents

Feature: User Logging In

  Logging in to the system as an admin user

  Background:
    Given I am logged out
    And an admin user "admin@example.com" exists
    When I go to the dashboard

  Scenario: Logging in Successfully
    When I fill in "Email" with "admin@example.com"
    And I fill in "Password" with "password"
    And I press "Login"
    Then I should be on the the dashboard
    And I should see the element "a[href='/admin/logout'       ]:contains('Logout')"
    And I should see the element "a[href='/admin/admin_users/1']:contains('admin@example.com')"

  Scenario: Attempting to log in with an incorrect email address
    Given override locale "devise.failure.not_found_in_database" with "Invalid email or password."
    When I fill in "Email" with "not-an-admin@example.com"
    And I fill in "Password" with "not-my-password"
    And I press "Login"
    Then I should see "Login"
    And I should see "Invalid email or password."

  Scenario: Attempting to log in with an incorrect password
    Given override locale "devise.failure.invalid" with "Invalid email or password."
    When I fill in "Email" with "admin@example.com"
    And I fill in "Password" with "not-my-password"
    And I press "Login"
    Then I should see "Login"
    And I should see "Invalid email or password."

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
activeadmin-rails-1.7.1 features/users/logging_in.feature
activeadmin-rails-1.7.0 features/users/logging_in.feature
activeadmin-rb-1.6.0 features/users/logging_in.feature
activeadmin-rb-1.5.2 features/users/logging_in.feature
activeadmin-rb-1.5.1 features/users/logging_in.feature
activeadmin-rb-1.5.0 features/users/logging_in.feature
activeadmin-rb-1.4.0 features/users/logging_in.feature