mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-13 14:16:46 +00:00
1.6 KiB
1.6 KiB
playwright.env.j2
This page is the SPOT for role-local Playwright environment templates.
Use this page for runner discovery, .env rendering, and the repository-side variable contract.
For implementation scope, variable naming, and rendered-output review, see Agent playwright.env.j2.
For the matching scenario requirements, see Contributing playwright.spec.js.
Role Contract
test-e2e-playwrightdiscovers Playwright-enabled roles throughtemplates/playwright.env.j2.- The file is rendered into
.envand passed to the Playwright container through--env-file. - The rendered environment must provide the inputs expected by the matching
files/playwright.spec.js.
Variable Rules
APP_BASE_URLdefines the supported start page of the role's test flow.- If
compose.services.dashboard.enabledis enabled,APP_BASE_URLshould resolve to the dashboard URL because the test flow must start there. - Provide additional app-specific URLs, feature flags, issuer URLs, and credentials only when the spec consumes them.
- Use explicit variable names that match the scenarios in the spec, especially when multiple personas such as
biberandadministratorare covered. - Quote values with
dotenv_quotewhen the rendered value may contain spaces or special characters.
Scope
- Keep the template surface small and explicit.
- Do not use
playwright.env.j2as a general dump for unrelated runtime variables. - Put the scenario requirements in Contributing
playwright.spec.js.