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

playwright-validation

Skill15k starsChanged 3 months agoApache-2.0View on GitHub

Use when validating UI changes in a branch require Playwright E2E testing. Reviews branch changes, validates UI with Playwright MCP, and adds missing test cases.

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.

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

20 rules. About 0 are common, 11 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After completing UI feature development

    line 12
  2. Distinctive:

    Before creating a PR for UI changes

    line 13
  3. Distinctive:

    When reviewing UI-related branches

    line 14
  4. Very specific:

    Check playwright/e2e/Pages/ for page-level tests

    line 42
  5. Very specific:

    Check playwright/e2e/Features/ for feature-specific tests

    line 43
  6. Distinctive:

    Use Glob/Grep to find tests related to the feature

    line 44
  7. Distinctive:

    Read the existing test file(s)

    line 47
  8. Very specific:

    Check playwright/utils/ for helper functions

    line 52
  9. Very specific:

    Check playwright/support/ for entity classes and fixtures

    line 53
  10. Very specific:

    Use mcp__playwright__browser_fill_form for login

    line 63
  11. Very specific:

    Default admin: admin@open-metadata.org / admin

    line 64
  12. Very specific:

    Use mcp__playwright__browser_click for navigation

    line 67
  13. Very specific:

    Use mcp__playwright__browser_snapshot to inspect page state

    line 68
  14. Distinctive:

    Test the main user flows

    line 71
  15. Distinctive:

    Verify visual elements (icons, badges, labels)

    line 72
  16. Distinctive:

    Check interactive elements (buttons, dropdowns, forms)

    line 73
  17. Distinctive:

    Verify state changes and API calls

    line 74
  18. Distinctive:

    Create new entity instances (TableClass, DataProduct, etc.)

    line 88
  19. Distinctive:

    Delete created entities in reverse order

    line 92
  20. Very specific:

    Every playwright/* and om-playwright/* guardrail rule is error severity.

    line 121

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “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 Validation Skill

This skill guides you through validating UI changes and ensuring comprehensive Playwright E2E test coverage.

When to Use

  • After completing UI feature development
  • Before creating a PR for UI changes
  • When reviewing UI-related branches
  • To verify existing Playwright tests cover all scenarios

Workflow

Phase 1: Review Branch Changes

  1. Identify changed files vs main:
    git diff main --stat
    git diff main --name-only | grep -E "\.(tsx?|less|css|scss)$"
  2. Focus on UI component changes:
    git diff main -- "openmetadata-ui/src/main/resources/ui/src/components/**" --stat
  3. Check for existing Playwright tests:
    git diff main --name-only | grep -E "playwright.*\.spec\.ts$"
  4. Read the changed component files to understand the UI modifications

Phase 2: Review Existing Playwright Tests

  1. Locate relevant test files:
    • Check playwright/e2e/Pages/ for page-level tests
    • Check playwright/e2e/Features/ for feature-specific tests
    • Use Glob/Grep to find tests related to the feature
  2. Analyze test coverage:
    • Read the existing test file(s)
    • Identify the test scenarios already covered
    • Note any gaps in coverage based on the UI changes
  3. Review test utilities:
    • Check playwright/utils/ for helper functions
    • Check playwright/support/ for entity classes and fixtures

Phase 3: Validate with Playwright MCP

  1. Start the browser and navigate:
    mcp__playwright__browser_navigate to http://localhost:8585
  2. Authenticate if needed:
    • Use mcp__playwright__browser_fill_form for login
    • Default admin: admin@open-metadata.org / admin
  3. Navigate to the feature area:
    • Use mcp__playwright__browser_click for navigation
    • Use mcp__playwright__browser_snapshot to inspect page state
  4. Validate UI behavior:
    • Test the main user flows
    • Verify visual elements (icons, badges, labels)
    • Check interactive elements (buttons, dropdowns, forms)
    • Verify state changes and API calls
  5. Document findings:
    • Note what works correctly
    • Identify any issues or missing functionality
    • List scenarios not covered by existing tests

Phase 4: Add Missing Test Cases

  1. Create a TodoWrite checklist of missing test scenarios
  2. For each missing test case:

    a. Add necessary test fixtures in beforeAll:

    • Create new entity instances (TableClass, DataProduct, etc.)
    • Set up required relationships (domains, assets)

    b. Add cleanup in afterAll:

    • Delete created entities in reverse order

    c. Write the test following the pattern:

    test('Descriptive Test Name - What it validates', async ({ page }) => {
      test.setTimeout(300000);
    
      await test.step('Step description', async () => {
        // Test actions and assertions
      });
    
      await test.step('Next step', async () => {
        // More actions and assertions
      });
    });
  3. Test patterns to cover:
    • Happy path (expected behavior)
    • Edge cases (empty states, max values)
    • Error handling (invalid inputs, failed requests)
    • State transitions (before/after actions)
    • UI feedback (loading states, success/error messages)
    • Permissions (disabled buttons, restricted actions)
  4. Run Playwright lint check:
    yarn lint:playwright
    Every playwright/* and om-playwright/* guardrail rule is error severity. Repo-wide openmetadata-playwright/* rules set their own, and may sit at warn while their call sites migrate — read the severity column in the handbook's ESLint Enforcement table rather than assuming.

Common Test Utilities

Navigation

import { sidebarClick } from '../../utils/sidebar';
import { redirectToHomePage } from '../../utils/common';
import { selectDataProduct, selectDomain } from '../../utils/domain';

Waiting

import { waitForAllLoadersToDisappear } from '../../utils/entity';
await waitForAllLoadersToDisappear(page);
await expect(page.getByTestId('content')).toBeVisible();
// NEVER use: page.waitForLoadState('networkidle') — blocked by ESLint

API Responses

const response = page.waitForResponse('/api/v1/endpoint*');
await someAction();
await response;
expect((await response).status()).toBe(200);

Assertions

await expect(page.getByTestId('element')).toBeVisible();
await expect(page.getByTestId('element')).toContainText('text');
await expect(page.locator('.class')).not.toBeVisible();

Checklist Before Completion

  • All UI changes have corresponding test coverage
  • Tests cover both positive and negative scenarios
  • Tests verify visual indicators (icons, badges, states)
  • Tests validate API interactions
  • yarn lint:playwright passes with zero errors
  • No networkidle, page.pause(), or test.only() usage (blocked by ESLint)
  • Test fixtures are properly created and cleaned up
  • Test timeouts use test.slow() (preferred) or test.setTimeout()

Example: Data Contract Inheritance Tests

For reference, see the comprehensive test coverage in: playwright/e2e/Pages/DataContractInheritance.spec.ts

This file demonstrates:

  • Multiple entity setup in beforeAll
  • Domain assignment patches
  • Contract creation and validation
  • Inheritance icon verification
  • Action button state verification (disabled/enabled)
  • API response validation (POST vs PATCH)
  • Fallback behavior testing

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.