Skip to content

Commit

Permalink
🐛(tests) wait for iframe to become interactive in js_input_response test
Browse files Browse the repository at this point in the history
The iframe in js_input_response test needs some time to become
interactive. Therefore we add an additional wait time in the test.
  • Loading branch information
SergioSim committed Nov 8, 2022
1 parent cbdfc51 commit 6a55ef9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ describe("LMS JS Input Response Problem Interaction Test", () => {
cy.lmsEnroll(true);
// Navigate to the courseware.
cy.visit(sectionUrl);
// Wait for iframe to become interactive.
cy.wait(1500);
// Input wrong answers.
cy.get(`#iframe_${problemId}_2_1`).click(118, 200);
cy.wait(200);
// Submit answer.
cy.get(".check.Valider").click();
cy.get(".check.Valider").should("not.have.class", "is-disabled");
Expand Down

0 comments on commit 6a55ef9

Please sign in to comment.