跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Migrate to Playwright

技能 已验证 活跃
属于:Pw

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.

工作流

  1. Detect Source Framework (Cypress, Selenium, or auto-detect)
  2. Assess Migration Scope (count files, categorize effort)
  3. Set Up Playwright (if not present)
  4. Convert Files (using detailed mappings)
  5. Upgrade Locators
  6. Convert Custom Commands / Utilities
  7. Verify Each Converted File
  8. 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

质量评分

已验证
97 /100
1 day ago 分析

信任信号

最近提交1 day ago
星标14.6k
许可证MIT
状态
查看源代码

类似扩展

Vue Testing Best Practices

100

Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.

技能
hyf0

Develop Web Game

100

Use 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.

技能
davila7

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 和扩展测试。

技能
currents-dev

Agent Migration Plan

98

Agent skill for migration-plan - invoke with $agent-migration-plan

技能
ruvnet

E2E Testing Patterns

98

Master 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.

技能
wshobson

Playwright Migration Guides

94

从 Cypress 或 Selenium/WebDriver 迁移到 Playwright 的分步指南 — 命令映射、架构更改和增量采用策略。

技能
testdino-hq