Writing Playwright Tests

🌐Community
by open-metadata · vlatest · Repository

Helps with writing, Playwright as part of testing, debugging, and quality assurance workflows.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add writing-playwright-tests npx -- -y @trustedskills/writing-playwright-tests
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "writing-playwright-tests": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/writing-playwright-tests"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill assists in writing Playwright end-to-end (E2E) tests, ensuring they adhere to OpenMetadata standards. It provides guidance and structure for test creation within a testing or quality assurance workflow. The skill leverages ESLint with the eslint-plugin-playwright to enforce code style and identify potential issues.

When to use it

  • When creating new Playwright E2E tests for your project.
  • To ensure Playwright tests follow OpenMetadata's established coding standards.
  • During debugging of existing Playwright tests, to help identify and resolve linting errors.
  • As part of a quality assurance process to maintain consistent test code quality.

Key capabilities

  • Guides users in writing Playwright E2E tests according to OpenMetadata standards.
  • Enforces ESLint rules for Playwright tests using eslint-plugin-playwright.
  • Highlights both error-level (blocking CI) and warning-level (suggesting improvements) ESLint rules.
  • Provides references to the PLAYWRIGHT_DEVELOPER_HANDBOOK for detailed information on ESLint enforcement.

Example prompts

  • "Help me write a Playwright test for [specific feature]."
  • "What are the recommended ESLint rules for Playwright tests?"
  • "How do I fix this ESLint error in my Playwright test: '[error message]'?"

Tips & gotchas

  • Before submitting any Playwright tests, run cd openmetadata-ui/src/main/resources/ui && yarn lint:playwright to ensure they pass ESLint checks.
  • Certain error-level rules (e.g., no-networkidle, no-page-pause) will block the CI pipeline.
  • Pay attention to warning-level rules, as they indicate potential anti-patterns in your tests that should be addressed.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
open-metadata
Installs
37

🌐 Community

Passed automated security scans.