From d3e0dfb9cb3b568df40aa39a6b9cf16ca0c72cae Mon Sep 17 00:00:00 2001 From: Arianrhod Sandlot Date: Wed, 27 Sep 2023 12:34:21 +0800 Subject: [PATCH] test: fix test in ci --- package.json | 2 +- tests/e2e/playwright.config.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e740778..1bb36cb 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tests/e2e/playwright.config.ts b/tests/e2e/playwright.config.ts index 196f599..41ad93a 100644 --- a/tests/e2e/playwright.config.ts +++ b/tests/e2e/playwright.config.ts @@ -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 } }, })