Background
We need a Playwright regression capability that validates whether the dashboard can be accessed successfully across multiple scope combinations using route parameters.
The application already allows route parameters to override .env defaults, for example:
/enterprises/<enterprise>
/orgs/<organization>
/orgs/<organization>/teams/<team>
/enterprises/<enterprise>/teams/<team>
/orgs/<organization>?mock=true
This means .env should only be treated as the initial/default configuration, while the regression suite should validate multiple combinations by passing route parameters dynamically.
Goal
Introduce a configuration-driven Playwright regression matrix that can validate both:
- Mock-data scenarios
- Real-data scenarios when
.env is set to non-mock mode
Scope
- Cover organization, enterprise, organization team, and enterprise team route combinations
- Validate that the basic dashboard page can be opened successfully for each configured scenario
- Validate that the page URL is correct and the route is handled without navigation errors
- Use a scenario/config table so multiple combinations can be added without duplicating test logic
Notes
.env provides defaults only
- Route parameters are the primary mechanism for switching test scenarios
- Real-data runs should use configured scenario values rather than hardcoded single-environment assumptions
Expected outcome
A reusable regression framework for route-driven page accessibility checks across mock and real environments.
Background
We need a Playwright regression capability that validates whether the dashboard can be accessed successfully across multiple scope combinations using route parameters.
The application already allows route parameters to override
.envdefaults, for example:/enterprises/<enterprise>/orgs/<organization>/orgs/<organization>/teams/<team>/enterprises/<enterprise>/teams/<team>/orgs/<organization>?mock=trueThis means
.envshould only be treated as the initial/default configuration, while the regression suite should validate multiple combinations by passing route parameters dynamically.Goal
Introduce a configuration-driven Playwright regression matrix that can validate both:
.envis set to non-mock modeScope
Notes
.envprovides defaults onlyExpected outcome
A reusable regression framework for route-driven page accessibility checks across mock and real environments.