Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧪 [E2E test] Add Cypress test - Permission.settings effect on permission dialog #888

Closed
enikonemeth opened this issue Sep 11, 2020 · 0 comments · Fixed by #1123
Closed
Assignees
Labels
Milestone

Comments

@enikonemeth
Copy link
Contributor

enikonemeth commented Sep 11, 2020

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 ensure that Permission.settings affects permission editor dialog.

image

😎 Role

All test should run as admin.

Test case 1

🧫 Purpose of the test

To ensure that adding a new group in Permission.settings file appears on permission editor dialog.

🐾 Steps

  1. Login with admin role
  2. Click on Setup menu item
  3. Click on the Edit button of Permission.settings
  4. Change the default text content to:
{
   "groups":[
	  {
         "See":["See"]
      },
      {
         "Read":["Preview", "PreviewWithoutWatermark", "PreviewWithoutRedaction", "Open"]
      },
      {
         "Write":[ "Save", "AddNew", "Delete"]
      },
      {
         "Versioning":["OpenMinor", "Publish", "ForceCheckin", "Approve", "RecallOldVersion"]
      },
      {
         "Advanced":["SeePermissions", "SetPermissions", "RunApplication"]
      }
   ]
}
  1. Click submit
  2. Click on Content menu item
  3. Right click on "IT Workspace" in the tree
  4. Click 'Set permissions' dropdown item
  5. Step: Click on Visitors item from 'Set on this entry' list
    Expected result: On the recently opened dialog should be the following tabs with the folowing permissions:
    (you can navigate between groups by clicking on the group names)
  • See: "See"
  • Read: "Preview", "PreviewWithoutWatermark", "PreviewWithoutRedaction", "Open"
  • Write: "Save", "AddNew", "Delete"
  • Versioning : "OpenMinor", "Publish", "ForceCheckin", "Approve", "RecallOldVersion"
  • Advanced : "SeePermissions", "SetPermissions", "RunApplication"

image

Test case 2

🧫 Purpose of the test

To ensure that removing a group in Permission.settings file disappears on permission editor dialog.

🐾 Steps

  1. Click on Setup menu item
  2. Click on the Edit button of Permission.settings
  3. Change the text content to:
{
   "groups":[
      {
         "Read":["See", "Preview", "PreviewWithoutWatermark", "PreviewWithoutRedaction", "Open"]
      },
      {
         "Write":[ "Save", "AddNew", "Delete"]
      },
      {
         "Versioning":["OpenMinor", "Publish", "ForceCheckin", "Approve", "RecallOldVersion"]
      },
      {
         "Advanced":["SeePermissions", "SetPermissions", "RunApplication"]
      }
   ]
}
  1. Click submit
  2. Click on Content menu item
  3. Right click on "IT Workspace" in the tree
  4. Click 'Set permissions' dropdown item
  5. Step: Click on Visitors item from 'Set on this entry' list
    Expected result: On the recently opened dialog should be the following tabs with the folowing permissions:
    (you can navigate between groups by clicking on the group names)
  • Read: "See", "Preview", "PreviewWithoutWatermark", "PreviewWithoutRedaction", "Open"
  • Write: "Save", "AddNew", "Delete"
  • Versioning : "OpenMinor", "Publish", "ForceCheckin", "Approve", "RecallOldVersion"
  • Advanced : "SeePermissions", "SetPermissions", "RunApplication"

image

@enikonemeth enikonemeth added test hacktoberfest Newcomers welcome! labels Sep 11, 2020
@herflis herflis changed the title 🧪 [E2E test] Permission.settings effect on permission dialog 🧪 [E2E test] Add Cypress test - Permission.settings effect on permission dialog Oct 7, 2020
@herflis herflis added cypress help wanted Extra attention is needed labels Oct 7, 2020
@herflis herflis removed the hacktoberfest Newcomers welcome! label Nov 2, 2020
@herflis herflis added this to the Sprint 226 milestone Jan 4, 2021
@herflis herflis removed help wanted Extra attention is needed cypress labels Jan 4, 2021
@enikonemeth enikonemeth self-assigned this Jan 5, 2021
@enikonemeth enikonemeth mentioned this issue Jan 5, 2021
5 tasks
@enikonemeth enikonemeth linked a pull request Jan 5, 2021 that will close this issue
5 tasks
@herflis herflis modified the milestones: Sprint 226, Sprint 227 Jan 7, 2021
@herflis herflis modified the milestones: Sprint 227, Sprint 228 Jan 20, 2021
@enikonemeth enikonemeth reopened this Feb 3, 2021
@herflis herflis modified the milestones: Sprint 228, Sprint 229 Feb 3, 2021
@herflis herflis modified the milestones: Sprint 229, Sprint 230 Feb 17, 2021
@herflis herflis closed this as completed Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants