2010-05-09 12:44:53 +00:00
|
|
|
@site_up
|
|
|
|
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
|
|
|
|
|
|
|
Scenario: Successful authentication
|
|
|
|
When I go to login
|
2010-06-10 22:07:59 +00:00
|
|
|
And I fill in "admin_email" with "admin@locomotiveapp.org"
|
|
|
|
And I fill in "admin_password" with "easyone"
|
2010-05-09 12:44:53 +00:00
|
|
|
And I press "Log in"
|
|
|
|
Then I should see "Listing pages"
|
2010-07-26 07:59:02 +00:00
|
|
|
|
2010-05-09 12:44:53 +00:00
|
|
|
Scenario: Failed authentication
|
|
|
|
When I go to login
|
2010-06-10 22:07:59 +00:00
|
|
|
And I fill in "admin_email" with "admin@locomotiveapp.org"
|
|
|
|
And I fill in "admin_password" with ""
|
2010-05-09 12:44:53 +00:00
|
|
|
And I press "Log in"
|
|
|
|
Then I should not see "Listing pages"
|