Migrate to Playwright
技能 已验证 活跃Migrate from Cypress or Selenium to Playwright. Use when user mentions "cypress", "selenium", "migrate tests", "convert tests", "switch to playwright", "move from cypress", or "replace selenium".
Migrate existing test suites from Cypress or Selenium to Playwright, providing a structured and guided conversion process.
功能
- File-by-file test conversion
- Cypress to Playwright mapping
- Selenium to Playwright mapping
- Locator and command upgrade guidance
- Playwright setup assistance
- Verification and cleanup steps
使用场景
- Use when migrating a project from Cypress to Playwright.
- Use when migrating a project from Selenium to Playwright.
- Use when converting specific test files between frameworks.
- Use when needing detailed guidance on command and assertion translation.
非目标
- Migrating tests to frameworks other than Playwright.
- Automating the entire migration process without user intervention.
- Writing new Playwright tests from scratch.
工作流
- Detect Source Framework (Cypress, Selenium, or auto-detect)
- Assess Migration Scope (count files, categorize effort)
- Set Up Playwright (if not present)
- Convert Files (using detailed mappings)
- Upgrade Locators
- Convert Custom Commands / Utilities
- Verify Each Converted File
- Clean Up (dependencies, configs, CI)
先决条件
- Playwright needs to be installed or set up.
- User confirmation for file deletion.
- Access to the project's test files and configuration.
Practical Utility
- info:Usage examplesWhile the SKILL.md describes the process and includes command examples for verification, it lacks end-to-end examples demonstrating the input, invocation, and output of the migration itself.
安装
请先添加 Marketplace
/plugin marketplace add alirezarezvani/claude-skills/plugin install playwright-pro@claude-code-skills质量评分
已验证类似扩展
Vue Testing Best Practices
100Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.
Develop Web Game
100Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with short input bursts and intentional pauses, inspect screenshots/text, and review console errors with render_game_to_text.
Playwright Best Practices
100用于编写 Playwright 测试、修复不稳定测试、调试失败、实现页面对象模型 (Page Object Model)、配置 CI/CD、优化性能、模拟 API、处理身份验证或 OAuth、测试可访问性 (axe-core)、文件上传/下载、日期/时间模拟、WebSockets、地理定位、权限、多标签/弹出窗口流程、移动/响应式布局、触摸手势、GraphQL、错误处理、离线模式、多人协作、第三方服务(付款、电子邮件验证)、控制台错误监控、全局设置/拆卸、测试注解(skip, fixme, slow)、测试标签(@smoke, @fast, @critical, 使用 --grep 过滤)、项目依赖项、安全测试(XSS, CSRF, 身份验证)、性能预算(Web Vitals, Lighthouse)、iframe、组件测试、canvas/WebGL、服务工作线程/PWA、测试覆盖率、i18n/本地化、Electron 应用或浏览器扩展测试。涵盖 E2E、组件、API、视觉、可访问性、安全、Electron 和扩展测试。
Agent Migration Plan
98Agent skill for migration-plan - invoke with $agent-migration-plan
E2E Testing Patterns
98Master end-to-end testing with Playwright and Cypress to build reliable test suites that catch bugs, improve confidence, and enable fast deployment. Use when implementing E2E tests, debugging flaky tests, or establishing testing standards.
Playwright Migration Guides
94从 Cypress 或 Selenium/WebDriver 迁移到 Playwright 的分步指南 — 命令映射、架构更改和增量采用策略。