Sha256: 7191b7fbf18cf14328fe0b7ea29ceedce080e393a4e9edbd653494503a039ccd

Contents?: true

Size: 1.01 KB

Versions: 3

Compression:

Stored size: 1.01 KB

Contents

Feature: Manage logins
  In order to login with Devise LDAP Authenticatable
  As a user
  I want to login with LDAP

  Background:
    Given the following logins:
      | email                 | password |
      | example.user@test.com | secret  |
  
  Scenario: Login with valid user
    Given I am on the login page
    When I fill in "Email" with "example.user@test.com"
    And I fill in "Password" with "secret"
    And I press "Sign in"
    Then I should see "posts#index"
    
  Scenario: Login with invalid user
    Given I am on the login page
    When I fill in "Email" with "example.user@test.com"
    And I fill in "Password" with "wrong"
    And I press "Sign in"
    Then I should see "Invalid email or password"
  
  Scenario: Get redirected to the login page and then login
    When I go to the new post page
    Then I should be on the login page
    When I fill in "Email" with "example.user@test.com"
    And I fill in "Password" with "secret"
    And I press "Sign in"
    Then I should be on the new post page
  
  
  

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
devise_ldap_authenticatable-0.4.2 test/rails_app/features/manage_logins.feature
devise_ldap_authenticatable-0.4.1.1 test/rails_app/features/manage_logins.feature
devise_ldap_authenticatable-0.4.1 test/rails_app/features/manage_logins.feature