diff --git a/cypress.config.js b/cypress.config.js index adc3988a0..c4ef187b0 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -4,6 +4,10 @@ module.exports = defineConfig({ e2e: { // baseUrl is set using environment variables because it differs between // development and CI setups. + retries: { + runMode: 3, + openMode: 0, + }, }, env: { // This is intentionally left empty. diff --git a/cypress/e2e/opening-hours-editor.cy.ts b/cypress/e2e/opening-hours-editor.cy.ts index 1b7853ab3..23489adf3 100644 --- a/cypress/e2e/opening-hours-editor.cy.ts +++ b/cypress/e2e/opening-hours-editor.cy.ts @@ -175,6 +175,7 @@ const validateOpeningHoursPage = ({ timeDuration: { start, end }, }: OpeningHourFormType) => { cy.getBySel("opening-hours-week-list") + .scrollIntoView() .should("be.visible") .and("contain", openingHourCategory) .and("contain", `${start} - ${end}`);