Generate robust, zero-flakiness Playwright E2E tests following OpenMetadata patterns. Creates comprehensive test files with proper waits, API validation, multi-role permissions, and complete entity lifecycle management.
Generate production-ready, zero-flakiness Playwright tests following OpenMetadata conventions.
/playwright-test
Feature: <feature name>
Category: <Features|Pages|Flow|VersionPages>
Entity: <Table|Dashboard|Pipeline|Topic|Database|User|Team|Glossary|Other>
Domain: <Governance|Discovery|Platform|Observability|Integration>
Scenarios:
- <scenario 1 description>
- <scenario 2 description>
- <scenario 3 description>
Roles: <admin|dataConsumer|dataSteward|owner> (optional, defaults to admin)
/playwright-test
Feature: Data Quality Rules
Category: Features
Entity: Table
Domain: Observability
Scenarios:
- Admin can create and configure data quality rules
- Data consumer can view test results but not edit rules
- Test results are persisted after page reload
Roles: admin, dataConsumer
CRITICAL: Before generating any tests, read and apply ALL patterns from:
openmetadata-ui/src/main/resources/ui/playwright/PLAYWRIGHT_DEVELOPER_HANDBOOK.md
The handbook contains:
Apply ALL handbook principles before proceeding.
Use the Test File Structure Template from the handbook. It includes:
Reference the Common Test Patterns section for:
Before returning the generated test, run the Playwright linter to catch anti-patterns automatically:
cd openmetadata-ui/src/main/resources/ui
yarn lint:playwright
Error-level rules (no-networkidle, no-page-pause, no-focused-test) will block CI. Fix any errors before finalizing. See the handbook's ESLint Enforcement section for the full rule reference.
Before returning the generated test, verify ALL items from the handbook's Validation Checklist:
yarn lint:playwright passes with zero errors)All patterns, rules, and best practices are in the handbook.
Read and apply the handbook sections in order:
yarn lint:playwright — errors block CI)// Create entity before entity.create())playwright/e2e/Pages/DataContractInheritance.spec.ts, playwright/e2e/Features/Table.spec.tsGenerate tests that are production-ready, maintainable, and zero-flakiness by following the handbook patterns exactly.