Skip to content

Commit 119cccc

Browse files
committed
fix(e2e): co-locate traces with results.json so CI uploads them
Playwright's default outputDir is packageJsonDir/test-results (apps/host/test-results), but the JSON reporter writes results.json relative to the config dir (apps/host/tests/e2e/test-results). The CI "Upload test results" step uploads only the latter, so trace.zip was never captured and E2E failures couldn't be diagnosed. Set an explicit outputDir relative to the config dir so traces land alongside results.json — the dir CI already uploads and reads.
1 parent de7030e commit 119cccc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/host/tests/e2e/playwright.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ if (process.env.CI !== "true") {
5353
export default defineConfig({
5454
...baseConfig,
5555
testDir: ".",
56+
// Co-locate traces with results.json (configDir-relative). The default is
57+
// packageJsonDir/test-results, which the CI upload step doesn't cover.
58+
outputDir: "test-results",
5659
timeout: 60_000,
5760
retries: 1,
5861
workers: 1,

0 commit comments

Comments
 (0)