From c131db5fefa5bd0088e6ecdcb0b0fa06d9ffa9e5 Mon Sep 17 00:00:00 2001 From: peptiderepo <273788462+peptiderepo@users.noreply.github.com> Date: Thu, 14 May 2026 16:40:31 +0700 Subject: [PATCH] Fix setup project: override testDir so global.setup.ts is discovered (#1) Unblocks PRAutoBlogger workflow-driven prod deploys (broken since 2026-04-26 smoke gate add). Agent-Session: cto merge-peptide-e2e-testdir-fix --- playwright.config.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/playwright.config.ts b/playwright.config.ts index b2e2444..bf47b7f 100755 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -43,9 +43,14 @@ export default defineConfig({ }, projects: [ - // Auth setup — runs first, saves session to disk + // Auth setup — runs first, saves session to disk. + // testDir override: global.setup.ts lives at repo root, not under ./tests. + // Without this, the top-level testDir './tests' filters it out and the + // setup project silently runs 0 tests, leaving the storage-state file + // unwritten and every chromium-project test failing on storageState load. { name: 'setup', + testDir: '.', testMatch: /global\.setup\.ts/, }, // All smoke tests — depend on auth setup