mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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_URLMUST define 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. - You MUST provide additional app-specific URLs, feature flags, issuer URLs, and credentials only when the spec consumes them.
- You MUST use explicit variable names that match the scenarios in the spec, especially when multiple personas such as
biberandadministratorare covered. - You MUST quote values with
dotenv_quotewhen the rendered value may contain spaces or special characters.
Scope
- You MUST keep the template surface small and explicit.
- You MUST NOT use
playwright.env.j2as a general dump for unrelated runtime variables. - You MUST put the scenario requirements in Contributing
playwright.spec.js.