cherry-pick workaround for flaky test in CI

This commit is contained in:
Livio Bieri 2024-02-29 17:33:52 +01:00
parent fd9e2b7310
commit ef3e6a8f0d
1 changed files with 6 additions and 0 deletions

View File

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