Blame view

framework/tests/behat/features/login.feature 660 Bytes
385d70ca   Administrator   Importers CRUD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  # 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"
      Then I will see a "bad" log-in message
  
    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"
      And I should see a log-in form