playwright-expert
Expert in Playwright E2E testing framework, auto-waiting mechanisms, test generation, trace viewer, and CI/CD integration. Use when the user mentions testing…
от personamanagmentlayer★ 46 звёзд на GitHub
Установить playwright-expert в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Playwright Expert
Core Concepts
Playwright Framework
- Cross-Browser - Chromium, Firefox, WebKit support
- Auto-Waiting - Smart waits for elements and network
- Browser Contexts - Isolated browser sessions
- Page Objects - Organize test code
- Fixtures - Reusable test setup
- Trace Viewer - Visual debugging
Test Organization
- Test Suites - Grouping related tests
- Hooks - beforeEach, afterEach, beforeAll, afterAll
- Annotations - @skip, @only, @slow, @fail
- Tags - Filter and organize tests
- Parallelization - Concurrent test execution
- Retries - Automatic retry on failure
Advanced Features
- Network Interception - Mock API responses
- Video Recording - Capture test execution
- Screenshots - Visual verification
- Code Generation - Record and generate tests
- Accessibility Testing - Built-in a11y checks
- Mobile Emulation - Test responsive designs
Best Practices
Test Organization
- Use descriptive test names
- Group related tests in describe blocks
- Use page object model for maintainability
- Create reusable fixtures
- Keep tests independent
- Avoid test interdependencies
Selectors
- Prefer user-facing attributes (text, role, label)
- Use data-testid for complex elements
- Avoid CSS selectors tied to styling
- Use getByRole for accessibility
- Chain locators for specificity
- Use nth() judiciously
Assertions
- Use specific expect matchers
- Wait for conditions before asserting
- Use soft assertions for multiple checks
- Provide meaningful error messages
- Test both positive and negative cases
- Verify visual changes with screenshots
Performance
- Run tests in parallel
- Use browser context for isolation
- Reuse authentication state
- Mock external dependencies
- Minimize navigation between pages
- Use API calls for setup/teardown
Anti-Patterns
Common Mistakes
- Using arbitrary waits (page.waitForTimeout)
- Not handling network conditions
- Coupling tests to implementation details
- Missing cleanup in afterEach
- Too many assertions in one test
- Hard-coded test data
Selector Issues
- Using XPath excessively
- Relying on CSS class names
- Not using accessible selectors
- Fragile selectors that break easily
- Over-specific selectors
- Missing data-testid attributes
Test Design Problems
- Tests depending on execution order
- Shared state between tests
- Testing too much in one test
- Not testing edge cases
- Missing error scenarios
- No retry strategy
Reference Documentation
Detailed material lives alongside this skill and is read on demand:
- Implementation Examples — Basic Test Structure, Page Object Model, Custom Fixtures, API Testing and Mocking, Visual Testing and Debugging, Configuration (playwright.config.ts)
Resources
Official Documentation
- Playwright Documentation - Complete guide
- API Reference - API docs
- Best Practices - Guidelines
- Trace Viewer - Debugging tool
Learning Resources
- Playwright YouTube Channel - Video tutorials
- Playwright Examples - Code samples
- Playwright Discord - Community chat
- Awesome Playwright - Curated resources
Tools & Extensions
- VS Code Extension - IDE integration
- Test Generator - Record tests
- Playwright Inspector - Debug tool
- Trace Viewer - Visual debugger
Community Resources
- GitHub Discussions - Q&A
- Stack Overflow - Community help
- Playwright Blog - Updates and articles
- Twitter @playwrightweb - News and tips
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Write - 03
Edit - 04
Bash - 05
Grep - 06
Glob
Вложенные файлы
- references/EXAMPLES.md
FAQ
Что делает скилл playwright-expert?
Expert in Playwright E2E testing framework, auto-waiting mechanisms, test generation, trace viewer, and CI/CD integration. Use when the user mentions testing, end-to-end tests, QA, automation, end-to-end testing, or test automation, or when the task involves Playwright Framework, Test Organization, Advanced Features, or Basic Test Structure.
Как установить скилл playwright-expert?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл playwright-expert запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…