E2E test spec fails at page forward - Receive "You seem to have gotten lost" message #24986
Labels
E2E
Issue related to end-to-end testing
pkg/rewriter
This is due to an issue in the packages/rewriter directory
stage: awaiting external fix
A 3rd party bug in Cypress - awaiting release
Triaged
Issue has been routed to backlog. This is not a commitment to have it prioritized by the team.
Current behavior
The Cypress test spec which failed consists of three H5P multiple choice questions, with one question per page. The first question writes a correct response. On the first page, when click on page forward, a blank page results.
Within the Cypress browser, the test spec exits and receive the message "You seem to have gotten lost...Try one of these links instead"
Recording:
https://user-images.githubusercontent.com/61484854/205752619-2d86cce6-5fb5-4ac4-b5a5-3e79c18739cc.mp4
Desired behavior
Cypress-io should continue the test spec execution until the test exam is completed, as intended.
Steps - Observed changes in urls
https://cypresstest2.sharmony.org/cypresstesttwo/multiple-choice-3-assessment-in-wordpress/
=> The issue occurs when clicking on the page forward to page 2
https://cypresstest2.sharmony.org/cypresstesttwo/multiple-choice-3-assessment-in-wordpress/#h5pbookid=1§ion=top&chapter=h5p-interactive-book-chapter-d77ea472-c357-4846-9455-0332a6268113
https://cypresstest2.sharmony.org/cypresstesttwo/multiple-choice-3-assessment-in-wordpress/#h5pbookid=1§ion=top&chapter=h5p-interactive-book-chapter-e8c99065-51d4-490a-a11d-e69ffdf921c2
Test code to reproduce
https://github.com/dcopening60/H5P_Exam_Fail
Code snippet:
Cypress Version
11.2.0
Node version
v14.15.0
Operating System
Windows 10 Enterprise OS build 19044.2251
Debug Logs
Other
Note regarding configuration:
When the following is set to true, the data within the iframe does not display and the test spec fails:
Receive a test failure filename
mochawesome_003.json
Need for solution to this issue:
Page forward in an H5P exam needs to be testable within Cypress. Much of our system functionality depends on exam scores.
The text was updated successfully, but these errors were encountered: