writing-playwright-tests
GitHub指导编写符合 OpenMetadata 标准的 Playwright E2E 测试,涵盖测试哲学、模式及最佳实践。强制使用 eslint-plugin-playwright 进行代码检查,确保遵循 CI 规范并避免常见反模式。
Trigger Scenarios
Install
npx skills add open-metadata/OpenMetadata --skill writing-playwright-tests -g -y
SKILL.md
Frontmatter
{
"name": "writing-playwright-tests",
"description": "Use when writing new Playwright E2E tests or adding test cases. Provides testing philosophy, patterns, and best practices from the Playwright Developer Handbook."
}
Writing Playwright Tests Skill
This skill guides you through writing Playwright E2E tests following OpenMetadata standards.
Reference: @openmetadata-ui/src/main/resources/ui/playwright/PLAYWRIGHT_DEVELOPER_HANDBOOK.md
ESLint Enforcement
All Playwright tests are linted with eslint-plugin-playwright. Run before submitting:
cd openmetadata-ui/src/main/resources/ui
yarn lint:playwright
Error-level rules block CI: no-networkidle, no-page-pause, no-focused-test.
Warning-level rules highlight anti-patterns to fix: missing-playwright-await, no-wait-for-timeout, no-force-option, no-element-handle, prefer-web-first-assertions, and more. See the handbook's ESLint Enforcement section for details.
Version History
- a1e7b7a Current 2026-07-24 20:48


