Cypress tests for OEN feature
To test OEN feature, we could add a test that includes:
- Add a new book
- In textbook planner
- check welcome message
- click Cancel/Start
- In step 1-Determine Hierarchy
- check the message
- choose "Chapters and Sections" firstly
- switch to "Parts, Chapters and Sections"
- check "warning message"
- click Yes and that the selection was changed
- In step 2-Outline Content
- check the information message on top
- add title for each element
- add structural parts
- clone/remove elements
- check that Remove is disabled when there is only one element of a kind
- In Step 3-Add Pedagogical Elements
- check the information message on top
- add and remove elements
- In Step 4-Review textbook
- check the information message on top
- type titles
- clone/remove elements
- check that Remove is disabled when there is only one element of a kind
- Check navigation by clicking Back/Next buttons in the navigation bar at the bottom
- Click Build book
- Check confirmation message
- Click cancel/yes and confirm that the book was built when clicking Yes
- In the Editor, add checks for
- Openers,
- Openers and Closers,
- Closers,
- Short boxes,
- Long boxes
The full list of all automated tests and their status is here.