Skip to content

Commit 849beff

Browse files
authored
Merge pull request #1795 from silx-kit/screenshots
Downgrade Cypress to fix snapshots
2 parents 57fb847 + db7d66c commit 849beff

32 files changed

+29
-24
lines changed

.github/workflows/approve-snapshots.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
run: pnpm build
5555

5656
- name: Serve ⚡️
57-
run: pnpm serve & pnpm dlx wait-on http://localhost:5173 -t 1m
57+
run: pnpm serve & pnpm wait-on http://localhost:5173 -t 1m
5858

5959
- name: Run Cypress 🌳
6060
run: pnpm cypress:run --env updateSnapshots=true

.prettierrc.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
{
2-
"singleQuote": true
2+
"singleQuote": true,
3+
"overrides": [
4+
{
5+
"files": "*.md",
6+
"options": {
7+
"proseWrap": "always"
8+
}
9+
}
10+
]
311
}

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,10 @@ rendering of the app depends on the GPU. For this reason, visual regression
453453
tests are run only on the CI. This is done through an environment variable
454454
called `CYPRESS_TAKE_SNAPSHOTS`.
455455

456+
> Locally, we run the tests without snapshots in Firefox, since it's our main
457+
> target browser. On the CI, Firefox takes flaky snapshots, so we have to run
458+
> the tests in Electron instead.
459+
456460
Visual regression tests may fail in the CI, either expectedly (e.g. when
457461
implementing a new feature) or unexpectedly (when detecting a regression). When
458462
this happens, the diff images and debug screenshots that Cypress generates are
14 KB
Loading
-4.84 KB
Loading
-6.89 KB
Loading
-8.07 KB
Loading
-5.76 KB
Loading
13.4 KB
Loading
13.8 KB
Loading

0 commit comments

Comments
 (0)