Cypress testing cases
In this issue I will list all the cases, pages and components for which we can add automated tests. @John.kopanas & @danjela you can edit this issue expand this list further.
There are already some tests and a few which need updates so they will not fail:
-
For the admin page is only one use case to fix for accepting bulk users.
Edit: this tests sometimes fails and sometimes not. Fixed with MR !114 (merged)
-
For Book Manager all the tests needs to be updated based on the latest updates which are done to the modal
New MR to fix this !113 (merged)
There is only one case which fails because the confirmation popup when we create a new book doesn't open.
New tests to add:
-
Changes in the Book settings (Display headings, display of chapter metadata, date formats) -- !127 (merged) !139 (closed) -
Preview modal, TOC changes when we change settings from display 'Chapter title only' to 'Chapter title and main section headings' -- Tested in !127 (merged) !139 (closed) -
Changes in the book metadata modal !139 (closed) !127 (merged) -
Changes in book components metadata (date created, date updated and adding new authors) !139 (closed)
At the book level
-
bulk upload files -
upload a file two times and check if it creates a second version for the file -- Done this with !127 (merged) -
upload a file two times after book component is published and check if it creates a new version for the book component -- !127 (merged) -
Change metadata, add authors and editors, save -- !127 (merged) -
Reorder authors and editors in metadata them , save -
Change book component status in bulk (ready to publish) -
See TOC, based on book settings, (change them and see if it changes the order) --- !127 (merged) -
Remove a chapter date, check if it shows in book TOC (make sure to have settings on for the date created) (ps. this can be 5 tests for all other settings of Display chapter metadata) !139 (closed) -
turn on Support multiple published versions and publish book components multiple times -
Change Publication Date Format, and modify the date in book metadata !139 (closed) -
Add, remove users from the book team -
Update tests for new designs of register page -- !124 (merged) -
Bulk upload, check if the requirements for filenames are met -- !127 (merged)
Chapter File tab
-
Upload a new file version from the File tab -- !127 (merged) -
Publish chapter and create new version -- !127 (merged) -
Disable upload to Files tab after a chapter is published -- !127 (merged) -
Upload wrong file to File tab Book component accordion -- !27 (merged) -
Upload, delete one and all versions, rename of supplementary files -- !120 (merged)
The test which fails is related to issue #192 (closed)
-
Supplementary files disable buttons after publish, upload suppl files to new versions. --!120 (merged) -
Downloads successfully files in all lists. Converted File, Source File, Images, Support, Supplementary
Feedback panel
-
Request review should not be possible if the setting is OFF or if there are no previewers -
Editors/Authors should be able to request review when setting is ON -
Approve/revise the status from the previewer -
Upload new file with changes to feedback panel -
New files uploaded should appear in files tab, review section -
Check status of book component after each update in feedback panel