silverstripe-framework/tests/behat/features/login.feature

20 lines
596 B
Gherkin
Raw Normal View History

@retry
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"
Then I should see "The provided details don't seem to be correct"
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/"
And I should see a log-in form