SenseNet / sn-client

Monorepo for sensenet client packages ๐Ÿฑโ€๐Ÿ’ป
https://sensenet.com
GNU General Public License v2.0
25 stars 37 forks source link

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

Open enikonemeth opened 4 years ago

enikonemeth commented 4 years ago

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
adi-mohan commented 3 years ago

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!

herflis commented 3 years ago

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

Christine-Pinto commented 2 years ago

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?