access-levels.feature 1010 B

12345678910111213141516171819202122
  1. Feature: access-levels
  2. Scenario: regular users cannot see admin-level items in the Settings menu
  3. Given I am logged in
  4. When I open the Settings menu
  5. Then I see that the Settings menu is shown
  6. And I see that the "Settings" item in the Settings menu is shown
  7. And I see that the "Users" item in the Settings menu is not shown
  8. And I see that the "Help" item in the Settings menu is shown
  9. And I see that the "Log out" item in the Settings menu is shown
  10. Scenario: regular users cannot see admin-level items on the Settings page
  11. Given I am logged in
  12. When I visit the settings page
  13. Then I see that the "Personal" settings panel is shown
  14. And I see that the "Administration" settings panel is not shown
  15. Scenario: admin users can see admin-level items on the Settings page
  16. Given I am logged in as the admin
  17. When I visit the settings page
  18. Then I see that the "Personal" settings panel is shown
  19. And I see that the "Administration" settings panel is shown