Sha256: 48af286cd8155e3d802cc01259da6bade326bf4aed3566cf27e144fd7a98627f

Contents?: true

Size: 1.17 KB

Versions: 39

Compression:

Stored size: 1.17 KB

Contents

Feature: User Logging In

  Logging in to the system 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
    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
    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
    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

39 entries across 39 versions & 6 rubygems

Version Path
activeadmin_addons-1.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/users/logging_in.feature
activeadmin_addons-1.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/users/logging_in.feature
yousty-activeadmin-1.0.17.pre features/users/logging_in.feature
yousty-activeadmin-1.0.16.pre features/users/logging_in.feature
activeadmin_addons-1.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/users/logging_in.feature
activeadmin_addons-1.0.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/users/logging_in.feature
activeadmin_addons-1.0.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/users/logging_in.feature
yousty-activeadmin-1.0.15.pre features/users/logging_in.feature
yousty-activeadmin-1.0.14.pre features/users/logging_in.feature
yousty-activeadmin-1.0.13.pre features/users/logging_in.feature
yousty-activeadmin-1.0.12.pre features/users/logging_in.feature
yousty-activeadmin-1.0.11.pre features/users/logging_in.feature
yousty-activeadmin-1.0.10.pre features/users/logging_in.feature
yousty-activeadmin-1.0.9.pre features/users/logging_in.feature
yousty-activeadmin-1.0.8.pre features/users/logging_in.feature
activeadmin-1.0.0.pre4 features/users/logging_in.feature
activeadmin-1.0.0.pre3 features/users/logging_in.feature
activeadmin-1.0.0.pre2 features/users/logging_in.feature
activeadmin-1.0.0.pre1 features/users/logging_in.feature
yousty-activeadmin-1.0.7.pre features/users/logging_in.feature