2017-04-18 00:34:18 +02:00
|
|
|
@retry
|
2012-11-09 19:16:16 +01:00
|
|
|
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"
|
2017-05-30 09:42:00 +02:00
|
|
|
Then I should see "The provided details don't seem to be correct"
|
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
|
2017-01-20 03:57:50 +01:00
|
|
|
When I go to "/admin/"
|
2013-11-29 02:17:04 +01:00
|
|
|
And I should see a log-in form
|