2012-11-09 19:16:16 +01:00
|
|
|
# features/login.feature
|
|
|
|
Feature: Log in
|
|
|
|
As an site owner
|
|
|
|
I want to access to the CMS to be secure
|
|
|
|
So that only my team can make content changes
|
|
|
|
|
|
|
|
Scenario: Bad login
|
|
|
|
Given I log in with "bad@example.com" and "badpassword"
|
2016-11-23 06:09:10 +01:00
|
|
|
Then I will see a "error" log-in message
|
2012-11-09 19:16:16 +01:00
|
|
|
|
|
|
|
Scenario: Valid login
|
|
|
|
Given I am logged in with "ADMIN" permissions
|
|
|
|
When I go to "/admin/"
|
|
|
|
Then I should see the CMS
|
|
|
|
|
|
|
|
Scenario: /admin/ redirect for not logged in user
|
|
|
|
# disable automatic redirection so we can use the profiler
|
|
|
|
When I go to "/admin/" without redirection
|
|
|
|
Then I should be redirected to "/Security/login"
|
2013-11-29 02:17:04 +01:00
|
|
|
And I should see a log-in form
|