mirror of
https://github.com/apache/superset.git
synced 2026-04-10 03:45:22 +00:00
Experimental Playwright Tests
This directory contains Playwright tests that are still under development or validation.
Purpose
Tests in this directory run in "shadow mode" with continue-on-error: true in CI:
- Failures do NOT block PR merges
- Allows tests to run in CI to validate stability before promotion
- Provides visibility into test reliability over time
Promoting Tests to Stable
Once a test has proven stable (no false positives/negatives over sufficient time):
-
Move the test file out of
experimental/to the appropriate feature directory:# From the repository root: git mv superset-frontend/playwright/tests/experimental/dashboard/test.spec.ts \ superset-frontend/playwright/tests/dashboard/ # Or from the superset-frontend/ directory: git mv playwright/tests/experimental/dashboard/test.spec.ts \ playwright/tests/dashboard/ -
The test will automatically become required for merge
Test Organization
Organize tests by feature area:
auth/- Authentication and authorization testsdashboard/- Dashboard functionality testsexplore/- Chart builder testssqllab/- SQL Lab tests- etc.
Running Tests
# Run all experimental tests (requires INCLUDE_EXPERIMENTAL env var)
INCLUDE_EXPERIMENTAL=true npm run playwright:test -- experimental/
# Run specific experimental test
INCLUDE_EXPERIMENTAL=true npm run playwright:test -- experimental/dashboard/test.spec.ts
# Run in UI mode for debugging
INCLUDE_EXPERIMENTAL=true npm run playwright:ui -- experimental/
Note: The INCLUDE_EXPERIMENTAL=true environment variable is required because experimental tests are filtered out by default in playwright.config.ts. Without it, Playwright will report "No tests found".