diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-11-02 17:44:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-02 17:44:52 +0100 |
commit | 84421f4c7c82946015efb7ef00985e4f7c0c0428 (patch) | |
tree | 32d735fbdee063c4fa24707e47d0e831075ced63 /tests | |
parent | 81d2828e9085ef3bea1299a977c8f281e938b7c1 (diff) | |
parent | 8e2824ea24d01908ec9d8f14fa7449353854d476 (diff) | |
download | nextcloud-server-84421f4c7c82946015efb7ef00985e4f7c0c0428.tar.gz nextcloud-server-84421f4c7c82946015efb7ef00985e4f7c0c0428.zip |
Merge pull request #41137 from nextcloud/chore/migrate-access-level-cypress
chore(cypress): Migrate access-level tests from Behat to Cypress
Diffstat (limited to 'tests')
-rw-r--r-- | tests/acceptance/features/access-levels.feature | 23 | ||||
-rw-r--r-- | tests/acceptance/features/header.feature | 25 |
2 files changed, 0 insertions, 48 deletions
diff --git a/tests/acceptance/features/access-levels.feature b/tests/acceptance/features/access-levels.feature deleted file mode 100644 index de34a17baea..00000000000 --- a/tests/acceptance/features/access-levels.feature +++ /dev/null @@ -1,23 +0,0 @@ -Feature: access-levels - - Scenario: regular users cannot 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 "Settings" item in the Settings menu is 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: regular users cannot see admin-level items on the Settings page - Given I am logged in - When I visit the settings page - Then I see that the "Personal info" entry in the settings panel is shown - And I see that the "Personal" settings panel is not shown - And I see that the "Administration" settings panel is not shown - - Scenario: admin users can see admin-level items on the Settings page - Given I am logged in as the admin - When I visit the admin settings page - Then I see that the "Personal" settings panel is shown - And I see that the "Administration" settings panel is shown diff --git a/tests/acceptance/features/header.feature b/tests/acceptance/features/header.feature index 1d120e66b34..2d9e2d51516 100644 --- a/tests/acceptance/features/header.feature +++ b/tests/acceptance/features/header.feature @@ -1,31 +1,6 @@ @apache Feature: header - 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 Settings menu has only 9 items - And I see that the "Set status" item in the Settings menu is shown - And I see that the "Appearance and accessibility" item in the Settings menu is shown - And I see that the "Personal settings" item in the Settings menu is shown - And I see that the "Administration settings" item in the Settings menu is shown - And I see that the "Apps" 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 - - Scenario: normal users can see basic 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 Settings menu has only 6 items - And I see that the "Set status" item in the Settings menu is shown - And I see that the "Appearance and accessibility" item in the Settings menu is shown - And I see that the "Settings" 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 - Scenario: other users are seen in the contacts menu Given I am logged in as the admin When I open the Contacts menu |