2017-04-04 18:24:30 +03:00
|
|
|
Feature: access-levels
|
|
|
|
|
2017-06-20 17:24:07 +03:00
|
|
|
Scenario: regular users cannot see admin-level items in the Settings menu
|
2017-04-04 18:24:30 +03:00
|
|
|
Given I am logged in
|
|
|
|
When I open the Settings menu
|
|
|
|
Then I see that the Settings menu is shown
|
2017-06-20 17:24:07 +03:00
|
|
|
And I see that the "Settings" item in the Settings menu is shown
|
2017-04-04 18:24:30 +03:00
|
|
|
And I see that the "Users" item in the Settings menu is not shown
|
|
|
|
And I see that the "Help" item in the Settings menu is shown
|
|
|
|
And I see that the "Log out" item in the Settings menu is shown
|
|
|
|
|
2017-06-26 11:30:42 +03:00
|
|
|
Scenario: regular users cannot see admin-level items on the Settings page
|
|
|
|
Given I am logged in
|
2017-06-20 17:24:07 +03:00
|
|
|
When I visit the settings page
|
|
|
|
Then I see that the "Personal" settings panel is shown
|
|
|
|
And I see that the "Administration" settings panel is not shown
|
|
|
|
|
2017-06-26 11:30:42 +03:00
|
|
|
Scenario: admin users can see admin-level items on the Settings page
|
|
|
|
Given I am logged in as the admin
|
2017-06-20 17:24:07 +03:00
|
|
|
When I visit the settings page
|
|
|
|
Then I see that the "Personal" settings panel is shown
|
|
|
|
And I see that the "Administration" settings panel is shown
|