Skip to content

Commit

Permalink
Merge pull request #1755 from danskernesdigitalebibliotek/fix-opening…
Browse files Browse the repository at this point in the history
…-hours-cypress-12-11-2024

Add `retries` in `cypress.config`
  • Loading branch information
kasperbirch1 authored Nov 20, 2024
2 parents 02dffb0 + f2a535c commit 3c08593
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/opening-hours-editor.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit 3c08593

Please sign in to comment.