2010-05-09 12:44:53 +00:00
|
|
|
Feature: Login
|
2010-07-26 07:59:02 +00:00
|
|
|
In order to access locomotive admin panel
|
|
|
|
As an administrator
|
|
|
|
I want to log in
|
2010-05-09 12:44:53 +00:00
|
|
|
|
2010-08-01 20:55:30 +00:00
|
|
|
Background:
|
|
|
|
Given I have the site: "test site" set up
|
2010-07-26 07:59:02 +00:00
|
|
|
|
2010-08-01 20:55:30 +00:00
|
|
|
Scenario: Successful authentication
|
|
|
|
When I go to login
|
|
|
|
And I fill in "Email" with "admin@locomotiveapp.org"
|
|
|
|
And I fill in "Password" with "easyone"
|
|
|
|
And I press "Log in"
|
|
|
|
Then I should see "Listing pages"
|
2010-08-01 10:37:49 +00:00
|
|
|
|
2010-08-01 20:55:30 +00:00
|
|
|
Scenario: Failed authentication
|
|
|
|
When I go to login
|
|
|
|
And I fill in "Email" with "admin@locomotiveapp.org"
|
|
|
|
And I fill in "Password" with ""
|
|
|
|
And I press "Log in"
|
|
|
|
Then I should not see "Listing pages"
|