Skip to content

Commit 79d0e4c

Browse files
committed
chore: set a sensible playwright snapshot path template
Without this, when you run the tests on a different platform, the snapshots are not found and new ones are created, which is quite confusing.
1 parent 56f3d5c commit 79d0e4c

File tree

3 files changed

+2
-0
lines changed

3 files changed

+2
-0
lines changed

playwright.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export default defineConfig<ConfigOptions>({
1818
reuseExistingServer: false,
1919
timeout: 60_000,
2020
},
21+
// We currently only test on one browser on one platform
22+
snapshotPathTemplate: '{snapshotDir}/{testFileDir}/{testFileName}-snapshots/{arg}{ext}',
2123
use: {
2224
baseURL,
2325
trace: 'on-first-retry',

test/e2e/og-image.spec.ts-snapshots/og-image-for---chromium-headless-shell-darwin.png renamed to test/e2e/og-image.spec.ts-snapshots/og-image-for--.png

File renamed without changes.

test/e2e/og-image.spec.ts-snapshots/og-image-for--package-nuxt-v-3-20-2-chromium-headless-shell-darwin.png renamed to test/e2e/og-image.spec.ts-snapshots/og-image-for--package-nuxt-v-3-20-2.png

File renamed without changes.

0 commit comments

Comments
 (0)