From ef3e6a8f0dbbb71cd648a605894cb15a052371c0 Mon Sep 17 00:00:00 2001 From: Livio Bieri Date: Thu, 29 Feb 2024 17:33:52 +0100 Subject: [PATCH] cherry-pick workaround for flaky test in CI --- cypress/e2e/circle.cy.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cypress/e2e/circle.cy.js b/cypress/e2e/circle.cy.js index 98d41b73..591d95f0 100644 --- a/cypress/e2e/circle.cy.js +++ b/cypress/e2e/circle.cy.js @@ -45,6 +45,12 @@ describe("circle.cy.js", () => { cy.get('[data-cy="complete-and-continue"]').click({ force: true }); cy.get('[data-cy="circle-title"]').should("contain", "Fahrzeug"); + // workaround for flaky test in CI: + // for some strange reason, locally we don't have to do this + // but in CI if we don't do this, the next click will not work... + // => it's not great but this workaround at least gives us a stable test + cy.visit("/course/test-lehrgang/learn/fahrzeug"); + cy.get('[data-cy="ls-continue-button"]').click(); cy.get('[data-cy="lc-title"]').should( "contain",