summaryrefslogtreecommitdiffstats
path: root/tests/acceptance/features/access-levels.feature
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2017-04-21 14:35:19 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-04-21 14:44:29 +0200
commit2f80025ec25dd3ce19c0664f07073399e9bf99e9 (patch)
tree9cb469bcf60bcb91c6462d8cd13834ad5d7a9482 /tests/acceptance/features/access-levels.feature
parentf89c16f83e33a38bf9a906b990c661b69eddd1e5 (diff)
downloadnextcloud-server-2f80025ec25dd3ce19c0664f07073399e9bf99e9.tar.gz
nextcloud-server-2f80025ec25dd3ce19c0664f07073399e9bf99e9.zip
Move acceptance tests from build/acceptance to tests/acceptance
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests/acceptance/features/access-levels.feature')
-rw-r--r--tests/acceptance/features/access-levels.feature21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/acceptance/features/access-levels.feature b/tests/acceptance/features/access-levels.feature
new file mode 100644
index 00000000000..57998899a57
--- /dev/null
+++ b/tests/acceptance/features/access-levels.feature
@@ -0,0 +1,21 @@
+Feature: access-levels
+
+ Scenario: regular users can not see admin-level items in the Settings menu
+ Given I am logged in
+ When I open the Settings menu
+ Then I see that the Settings menu is shown
+ And I see that the "Personal" item in the Settings menu is shown
+ And I see that the "Admin" item in the Settings menu is not shown
+ 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
+
+ Scenario: admin users can see admin-level items in the Settings menu
+ Given I am logged in as the admin
+ When I open the Settings menu
+ Then I see that the Settings menu is shown
+ And I see that the "Personal" item in the Settings menu is shown
+ And I see that the "Admin" item in the Settings menu is shown
+ And I see that the "Users" item in the Settings menu is 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