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",