cirandas.net

ref: master

features/roles.feature


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Feature: manage roles
  As an environment admin
  I want to create and edit roles

  Scenario: create new role
    Given I am logged in as admin
    And I go to the environment control panel
    And I follow "User roles"
    Then I should not see "My new role"
    And I follow "Create a new role"
    And I fill in "Name" with "My new role"
    And I check "Publish content"
    And I press "Create role"
    And I go to the environment control panel
    And I follow "User roles"
    Then I should see "My new role"

  Scenario: edit a role
    Given I am logged in as admin
    And I go to the environment control panel
    And I follow "User roles"
    Then I should not see "My new role"
    And I follow "Profile Administrator"
    And I follow "Edit"
    And I fill in "Name" with "My new role"
    And I press "Save changes"
    And I go to the environment control panel
    And I follow "User roles"
    Then I should see "My new role"
    And I should not see "Profile Administrator"