sn-client icon indicating copy to clipboard operation
sn-client copied to clipboard

[E2E test] Add Cypress test - Drawer items depend on user's role

Open enikonemeth opened this issue 5 years ago โ€ข 3 comments

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

  1. Login with admin role
  2. 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'
  3. Log out

Test case 2

๐Ÿ˜Ž Role

developer

๐Ÿงซ Purpose of the test

There are 7 menuitems available for developer user

๐Ÿพ Steps

  1. Login with admin role
  2. 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'
  3. Log out

enikonemeth avatar Jul 21 '20 12:07 enikonemeth

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!

adi-mohan avatar Oct 17 '20 16:10 adi-mohan

Hi @adi-mohan, the issue is assigned to you :) Let us know if we can help you with anything

herflis avatar Oct 17 '20 17:10 herflis

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?

Christine-Pinto avatar Oct 24 '21 20:10 Christine-Pinto