Documentation
¶
Overview ¶
Command export-session logs into GitHub via Playwright and exports the browser session (cookies + localStorage) as a Playwright storageState JSON file. This is used to generate pre-authenticated sessions for e2e tests that run in CI where password login is blocked.
Required environment variables:
- E2E_GITHUB_USERNAME: GitHub username
- E2E_GITHUB_PASSWORD: GitHub password (use `pass` or similar)
Optional environment variables:
- E2E_GITHUB_TOTP_SECRET: Base32-encoded TOTP secret for 2FA accounts
Output is written to E2E_GITHUB_SESSION_FILE (default: .playwright/session.json).
Click to show internal directories.
Click to hide internal directories.