Each entry gives the symptom, the cause, and the fix. Errors are quoted exactly as the framework prints them.
Cause: Playwright's bundled browser is not installed on this machine.
Fix:
bunx playwright install chromiumCause: package.json and bun.lock disagree. Someone changed a dependency without updating the lockfile.
Fix: run bun install locally, review the lockfile change, and commit bun.lock with the dependency change.
Cause: an old command or an npm install from before the Bun migration.
Fix: use bun install and bun run <script>. Delete any stray package-lock.json. The repo uses bun.lock.
Cause: TEST_ENV is set to a name that does not exist.
Fix: use one of dev, qa, staging, production. Unset it to default to dev.
Cause: the settings file is absent or incomplete.
Fix: copy the keys from an existing file in config/environments/. See environments.
Cause: the baseUrl (or the BASE_URL override) is not an absolute URL, for example it is missing https://.
Fix: correct the value.
Cause: an authenticated test ran without credentials. Only the setup project and tests that use the credentials
fixture need them.
Fix: add the values to .env locally, or set the GitHub Environment secrets in CI. Do not put them in a file that
is committed.
Cause: the account in E2E_USERNAME and E2E_PASSWORD was rejected. The login page shows an Invalid credentials
alert, so the browser never reaches the dashboard.
Fix: check the values. On a shared demo, the account may have been reset. Re-enter the credentials, then re-run.
Open the failing test's trace in reports/test-results/ to see the alert.
Cause: the production guard blocked a test that is not tagged @prod. The config filter normally prevents this, so the
guard runs only when that filter has been removed or changed.
Fix: restore the grep: /@prod/ filter in playwright.config.js, and run only @prod tests in production, for
example bun run test:production. If the test should run in production, make it read-only and tag it @prod. See
tagging.
Cause: the --grep filter or the environment selects a smaller set.
Fix: list the selection first:
bunx playwright test --list
bunx playwright test --list --grep "@smoke"Cause: the run is headless by default.
Fix: run bun run test:headed. Or set HEADED=true in .env and run any script.
Cause: the saved session in playwright/.auth/user.json is stale or missing.
Fix: delete the file and run the setup project again:
rm -f playwright/.auth/user.json # PowerShell: Remove-Item playwright/.auth/user.json
bunx playwright test --project=setupCause: reports/ still contains output from an earlier run.
Fix: bun run clean, then run the tests again.
Cause: no run has written a report yet, or reports/ was cleaned.
Fix: run bun run test first.
Cause: the files were checked out with CRLF line endings. The repo stores LF and .gitattributes enforces LF on
checkout. An older clone may predate that file.
Fix: re-clone the repo, or stash your changes and run git checkout -- .. Check with git ls-files --eol.
Run the failing command with the full output, then check the README and the guardrails. Open an issue with the command, the environment name, and the error. Do not paste credentials.