From 08b99fb8431b0c1e628a2cd3e36c5a75aed3786c Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Wed, 27 Sep 2023 17:00:45 +0200 Subject: [PATCH] Wait for initial step in cypress test --- cypress/e2e/feedback/feedbackStudent.cy.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cypress/e2e/feedback/feedbackStudent.cy.js b/cypress/e2e/feedback/feedbackStudent.cy.js index 6d1a4f0c..d27c6a5b 100644 --- a/cypress/e2e/feedback/feedbackStudent.cy.js +++ b/cypress/e2e/feedback/feedbackStudent.cy.js @@ -14,7 +14,14 @@ describe("feedbackStudent.cy.js", () => { }); it("can create feedback by giving answers to all steps", () => { + // initial wait for step 0 (or none with step==0) is required for pipelines + cy.url().should((url) => { + expect(url).to.match(/\/fahrzeug\/feedback(\?step=0)?$/); + }); + + cy.wait(200); cy.learningContentMultiLayoutNextStep(); + cy.wait(200); // fill feedback form // step 1