Debug failures from test-e2e.yml locally. Includes both CI-parity reproduction (app-build + test:build) and faster dev-runtime triage for Smoke Playwright tests.
.github/workflows/test-e2e.yml or the e2e App Tests workflow failed in CI.Start from the failing CI evidence.
Reproduce with CI-parity commands first (same mode as CI):
npm run app-build
npm run test:build -w packages/insomnia-smoke-test -- --project=Smoke
Re-run only the failing test while iterating (instead of the full suite):
npm run test:build -w packages/insomnia-smoke-test -- --project=Smoke tests/smoke/<failing-file>.test.ts
npm run test:build -w packages/insomnia-smoke-test -- --project=Smoke --grep "<failing test title>"
If CI-parity passes but you still need a faster loop for investigation, switch to dev runtime:
npm run watch:app
npm run test:dev -w packages/insomnia-smoke-test -- --project=Smoke
Keep watch:app running while iterating.
npm run app-build + npm run test:build -w packages/insomnia-smoke-test -- --project=Smoke.watch:app + test:dev) is useful for quick local triage, but not a strict CI match.PWDEBUG=1 npm run test:smoke:devDEBUG=pw:api npm run test:smoke:devDEBUG=pw:browser npm run test:smoke:devDEBUG=pw:WebServer npm run test:smoke:devpackages/insomnia-smoke-test/traces and can be opened with:
npx playwright show-trace packages/insomnia-smoke-test/traces/<trace-folder>/trace.zip
test:build).watch:app) after validation is complete.