[E2E test] Add Cypress test - Drawer items depend on user's role
Before you start working on an issue please take a look at our dedicated hacktoberfest site to learn the basic rules and find additional resources to help you get started.
๐งชE2E test cases
The scope of these tests is to prove the drawer behaves differently depend on the permissions of the user has.
Test case 1
๐ Role
admin
๐งซ Purpose of the test
There are 7 menu items available for admin user
๐พ Steps
- Login with admin role
-
Step: Check the available menuitems on the left drawer
Expected result: The following menuitems are available on the left drawer:
- Search with the title of 'Execute custom searches, build and save queries'
- Content with the title of 'Explore and manage your content in the repository'
- Users and groups with the title of 'Manage users and groups, roles and identities'
- Trash with the title of 'Manage deleted items here: restore content or purge them permanently'
- Content Types with the title of 'Manage content types'
- Localization with the title of 'Manage string resources'
- Setup with the title of 'Configure the sensenet system'
- Log out
Test case 2
๐ Role
developer
๐งซ Purpose of the test
There are 7 menuitems available for developer user
๐พ Steps
- Login with admin role
-
Step: Check the available menuitems on the left drawer
Expected result: The following menuitems are available on the left drawer:
- Search with the title of 'Execute custom searches, build and save queries'
- Content with the title of 'Explore and manage your content in the repository'
- Users and groups with the title of 'Manage users and groups, roles and identities'
- Trash with the title of 'Manage deleted items here: restore content or purge them permanently'
- Content Types with the title of 'Manage content types'
- Localization with the title of 'Manage string resources'
- Setup with the title of 'Configure the sensenet system'
- Log out
Hi Sensenet! I have completed the entry challenge. I am new to Cypress, but I am learning it. It would be great if you assign me this issue. Thanks!
Hi @adi-mohan, the issue is assigned to you :) Let us know if we can help you with anything
Hi @herflis , I saw you guys have a bunch of cypress todo's open. Do you already have a cypress setup? What is the plan of running the cypress tests in or against? Prod or against a docker setup?