From 7863de653af2ffebc1ca71cc919169c5c17eb04e Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 15 Jul 2024 19:00:45 +0100 Subject: [PATCH] Enable Playwright forbidOnly in CI to catch accidental `test.only` (#12762) Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- playwright.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/playwright.config.ts b/playwright.config.ts index 0e96d62c30..ba491ff82a 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -42,4 +42,5 @@ export default defineConfig({ reporter: process.env.CI ? [["blob"], ["github"]] : [["html", { outputFolder: "playwright/html-report" }]], snapshotDir: "playwright/snapshots", snapshotPathTemplate: "{snapshotDir}/{testFilePath}/{arg}-{platform}{ext}", + forbidOnly: !!process.env.CI, });