agentleFS
open-metadataopen-metadata/OpenMetadata/skills/playwright/SKILL.md

playwright-test

Skill15k starsChanged 3 months agoApache-2.0View on GitHub

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.

5 other projects use a version of this.

Trending

Less talk lately.about the whole repository

Dec 2025: 1 mentionJan 2026: 0 mentionsFeb 2026: 1 mentionMar 2026: 0 mentionsApr 2026: 10 mentionsMay 2026: 1 mentionJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 8 mentionsSep 2026: 4 mentionsOct 2026: 3 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the open-metadata/OpenMetadata repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about open-metadata/OpenMetadata

The biggest 5 of 40 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 40

Talked about on GitHub, Bluesky and Hacker News (40 times).

On GitHub · 29

24 more on GitHub

On Bluesky · 10

5 more on Bluesky

On Hacker News · 1

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 13 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    CRITICAL: Before generating any tests, read and apply ALL patterns from:

    line 47
  2. Distinctive:

    Test timeout strategies (test.slow() vs test.setTimeout())

    line 56
  3. Distinctive:

    Use the Test File Structure Template from the handbook.

    line 69
  4. Distinctive:

    test.describe with domain tags

    line 71
  5. Distinctive:

    test.slow() for timeout handling

    line 73
  6. Distinctive:

    test.step() for clear organization

    line 74
  7. Distinctive:

    Search and filter patterns

    line 87
  8. Distinctive:

    Before returning the generated test, run the full Playwright lint gate — the same one CI runs:

    line 93
  9. Very specific:

    Every playwright/* and om-playwright/* guardrail rule runs at error.

    line 100
  10. Distinctive:

    Before returning the generated test, verify ALL items from the handbook's Validation Checklist:

    line 106
  11. Distinctive:

    Read and apply the handbook sections in order:

    line 121
  12. Distinctive:

    Follow ALL patterns from the handbook exactly

    line 133
  13. Very specific:

    No comments for obvious code (e.g., // Create entity before entity.create())

    line 134
  14. Distinctive:

    Test independence - each test runs in any order

    line 135
  15. Very specific:

    All Playwright tests are linted with eslint-plugin-playwright plus this repo's local om-playwright rules.

    line 148
  16. Very specific:

    Every guardrail rule runs at error and none is merely advisory.

    line 156
  17. Distinctive:

    Before reporting the work complete, run:

    line 164

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Playwright Test Generator - OpenMetadata

Generate production-ready, zero-flakiness Playwright tests following OpenMetadata conventions.

Usage

/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)

Quick Example

/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

Instructions

Step 1: Read the Handbook FIRST

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:

  • Testing philosophy (user-centric, behavior-focused)
  • Anti-flakiness patterns (the :visible selector chain pattern, etc.)
  • Test timeout strategies (test.slow() vs test.setTimeout())
  • Common test patterns (form submission, dropdowns, multi-role testing)
  • Locator priority guidelines
  • Support classes reference
  • Domain tags
  • Validation checklist

Apply ALL handbook principles before proceeding.


Step 2: Generate Test Using Handbook Template

Use the Test File Structure Template from the handbook. It includes:

  • Proper imports (performAdminLogin, entity classes, utilities)
  • test.describe with domain tags
  • beforeAll/afterAll for entity lifecycle via API
  • test.slow() for timeout handling
  • test.step() for clear organization
  • API response validation pattern

Step 3: Apply Common Test Patterns from Handbook

Reference the Common Test Patterns section for:

  • Form submission with API validation
  • Dropdown selection (with :visible chain pattern)
  • Multi-role permission testing
  • Data persistence verification
  • Navigation patterns
  • Search and filter patterns

Step 4: Run ESLint Check

Before returning the generated test, run the full Playwright lint gate — the same one CI runs:

cd openmetadata-ui/src/main/resources/ui
yarn lint:playwright

Every playwright/* and om-playwright/* guardrail rule runs at error; repo-wide openmetadata-playwright/* rules set their own severity and may be warn. Fix any errors before finalizing — never add a new entry to eslint-suppressions.json to make this pass. See the handbook's ESLint Enforcement section for the full, generated rule reference.

Step 5: Validate Against Handbook Checklist

Before returning the generated test, verify ALL items from the handbook's Validation Checklist:

  • ✅ Structure & Organization (test.step, domain tags, imports, beforeAll/afterAll)
  • ✅ Anti-Flakiness (no waitForTimeout, no networkidle, no force: true, no positional selectors, no stored :visible locators)
  • ✅ API & Network (waitForResponse before actions, status code validation)
  • ✅ Waits & Assertions (waitForAllLoadersToDisappear, semantic locators, proper assertions)
  • ✅ ESLint (yarn lint:playwright passes with zero errors)
  • ✅ Coverage & Roles (multi-role tests, data persistence, error handling)

Key Reminders

All patterns, rules, and best practices are in the handbook.

Read and apply the handbook sections in order:

  1. Anti-Flakiness Patterns (CRITICAL - #1 cause of flaky tests)
  2. Test File Structure Template (for proper test structure)
  3. Common Test Patterns (for specific scenarios)
  4. ESLint Enforcement (run yarn lint:playwright — every rule is error)
  5. Validation Checklist (before returning generated test)

Final Notes

  • Generate production-ready tests that pass 10/10 times
  • Follow ALL patterns from the handbook exactly
  • No comments for obvious code (e.g., // Create entity before entity.create())
  • Test independence - each test runs in any order
  • Reference examples: playwright/e2e/Pages/DataContractInheritance.spec.ts, playwright/e2e/Features/Table.spec.ts

Generate tests that are production-ready, maintainable, and zero-flakiness by following the handbook patterns exactly.


Writing Playwright Tests (merged from the former writing-playwright-tests skill)

Reference: openmetadata-ui/src/main/resources/ui/playwright/PLAYWRIGHT_DEVELOPER_HANDBOOK.md

ESLint Enforcement

All Playwright tests are linted with eslint-plugin-playwright plus this repo's local om-playwright rules. Run before submitting:

cd openmetadata-ui/src/main/resources/ui
yarn lint:playwright

Every guardrail rule runs at error and none is merely advisory; the severity column is authoritative for anything else. The generated rule table (per-rule severity and description) lives in the handbook's ESLint Enforcement section; it's produced by yarn generate:playwright-rules from eslint.config.mjs, so it can't drift from what actually blocks CI. Pre-existing violations are tracked in eslint-suppressions.json — that ledger may shrink as violations are fixed, never grow.

Mandatory verification

Before reporting the work complete, run:

cd openmetadata-ui/src/main/resources/ui && yarn lint:playwright

This must exit 0. Do not suppress a new violation to make it pass — suppressions are a record of pre-existing debt, and adding to them is a plan failure. Fix the test instead.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.