Skip to content

Commit

Permalink
test: fix test in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
arianrhodsandlot committed Sep 27, 2023
1 parent d414e99 commit d3e0dfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint": "eslint src",
"prepare-test": "node ./scripts/prepare-test.js",
"preview": "vite build && vite preview",
"test": "playwright test -c tests/e2e"
"test": "playwright test -c tests/e2e single-rom "
},
"dependencies": {
"@fontsource-variable/fredoka": "5.0.8",
Expand Down
3 changes: 1 addition & 2 deletions tests/e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ export default defineConfig({
testDir: '.',
snapshotDir: 'snapshots',
snapshotPathTemplate: '{snapshotDir}/{testFilePath}/{testName}-{arg}{ext}',
timeout: 5 * 60 * 1000,
use: {
baseURL: 'http://localhost:5173',
trace: 'on-first-retry',
},
webServer: { command: 'pnpm dev', url: 'http://127.0.0.1:5173', reuseExistingServer: !process.env.CI },
webServer: { command: 'pnpm dev', url: 'http://localhost:5173', reuseExistingServer: !process.env.CI },
expect: { toHaveScreenshot: { maxDiffPixelRatio: 0.05 } },
})

0 comments on commit d3e0dfb

Please sign in to comment.