Skip to content

Add route-parameter-driven Playwright regression matrix for mock and real data scenarios #331

@DevOps-zhuang

Description

@DevOps-zhuang

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:

  1. Mock-data scenarios
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions