Test cases that can be extended for cypress user permission tests
Roles - spreadsheet reference
Note: will refer to the cells in spreadsheet for what accesses are not cover by tests
-
Sys admin -
-
Test for dashboard access: (cells B8-B17 not included); B19-B20 not included, as book and org are created via script.
-
-
-
Test for book manager chapter-processed: B1-B8 done.
-
-
-
Test for book component page actions, not checked only the vendor issues tab.
-
-
-
PDF or XML wholebook page
-
-
-
Collection page: (B3-B5) - Create collection, check grants on metadata modal, update some of the settings.
-
-
-
Org admin -
-
grants section permission
-
-
-
Test for dashboard access and actions of the orgadmin
-
-
-
Test for book manager page actions
-
-
-
Test for book component page actions
-
-
-
Test for collection access: Create collection, check grants on metadata modal, update some of the settings. Needs improvement!
-
-
-
Editor -
Book Editor Test case named 'loging in as member of the book' only checks existence of the metadata, settings and team modal. A book editor can do much more.
-
-
They can update metadata modal, Only done for an XML wholebook
-
-
-
They can update settings but not all of them, only done for an xml wholebook
-
-
-
They can create parts and bulk upload
-
-
-
They can update team of book components
-
-
-
User access on dashboard and organisation level
-
-
-
User access on the book component tabs pages
-
-
-
grants section permission
-
-
-
Book component Editor
-
-
Access for this role for chapter chapter processed book on the spreadsheet
-
-
-
They shouldn't be allowed to bulk upload on chapter processed books
-
-
-
They shouldn't be allowed to make edits on metadata, team, settings modals of chapter processed books.
-
-
-
Access on the book component tabs: Preview, Team, Files, Errors, Metadata. Checked viewing access for the tab itself and only the buttons for each of them, but not the other input/content elements.
-
-
-
-
PDF2XML vendor (PDF WF) I. - Access in a PDF Wholebook -
-
Metadata
-
-
-
settings tab
-
-
-
reload preview.
-
-
-
publish TOC
-
-
-
files tab
-
-
-
vendor queries
-
-
-
errors tab
-
-
-
preview tab II. - Access on a PDF chapter processed book
-
-
Metadata Modal -
Settings Modal -
Team modal -
Bulk upload -
Book component tabs -
Parts III. - [ ] Dashboard access & organization access IV. - [ ] Collection manager page access
-
-
General User access permissions
-
User login validation -
User registration -
User request access -
User acceptance & access to an org, via the user modal -
User acceptance via bulk actions on organisation/users page