Skip to content

The agent that grows with you

fix(desktop): forbid .only in all Playwright configs

Brooklyn Nicholson60bf909af984
diff --git a/apps/desktop/e2e/core/playwright.config.ts b/apps/desktop/e2e/core/playwright.config.ts
index ff95dcce9f4..5d773e76807 100644
--- a/apps/desktop/e2e/core/playwright.config.ts
+++ b/apps/desktop/e2e/core/playwright.config.ts
@@ -22,6 +22,10 @@ export default defineConfig({
timeout: 180_000,
expect: { timeout: 60_000 },
retries: 0,
+ /* A required lane must also refuse a stray `.only`, not just stop
+ * retrying it: `forbidOnly: true` unconditionally — locally and in CI —
+ * because a focused test here would silently shrink a required job. */
+ forbidOnly: true,
workers: 1,
fullyParallel: false,
reporter: [['list'], ['html', { open: 'never', outputFolder: '../../playwright-report/core' }]],
diff --git a/apps/desktop/e2e/update/playwright.config.ts b/apps/desktop/e2e/update/playwright.config.ts
index 190117f4b18..ce9358fb980 100644
--- a/apps/desktop/e2e/update/playwright.config.ts
+++ b/apps/desktop/e2e/update/playwright.config.ts
@@ -25,6 +25,9 @@ export default defineConfig({
timeout: 12 * 60_000,
expect: { timeout: 60_000 },
retries: 0,
+ /* Same contract as the core lane: a required job must never be quietly
+ * shrunk by a focused test, so forbidOnly is unconditional here too. */
+ forbidOnly: true,
workers: 1,
fullyParallel: false,
reporter: [['list'], ['html', { open: 'never', outputFolder: `../../playwright-report/${OUT}` }]],
diff --git a/apps/desktop/playwright.config.ts b/apps/desktop/playwright.config.ts
index a51beeda528..69632b0a7a9 100644
--- a/apps/desktop/playwright.config.ts
+++ b/apps/desktop/playwright.config.ts
@@ -38,6 +38,8 @@ export default defineConfig({
* per test gives us headroom without masking real hangs. */
timeout: 90_000,
retries: process.env.CI ? 1 : 0,
+ /* A stray `test.only` must never let CI report a partial green run. */
+ forbidOnly: !!process.env.CI,
/* Each test gets its own worker so the Electron process is fully isolated. */
fullyParallel: false,
reporter: reporters,