Skip to main content

Migrate to Playwright

Skill Verified Active
Part of: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".

Purpose

Migrate existing test suites from Cypress or Selenium to Playwright, providing a structured and guided conversion process.

Features

  • 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 Cases

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

Non-Goals

  • Migrating tests to frameworks other than Playwright.
  • Automating the entire migration process without user intervention.
  • Writing new Playwright tests from scratch.

Workflow

  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)

Prerequisites

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

Installation

First, add the marketplace

/plugin marketplace add alirezarezvani/claude-skills
/plugin install playwright-pro@claude-code-skills

Quality Score

Verified
97 /100
Analyzed about 20 hours ago

Trust Signals

Last commit1 day ago
Stars14.6k
LicenseMIT
Status
View Source

Similar Extensions

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.

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

Skill
davila7

Playwright Best Practices

100

Use when writing Playwright tests, fixing flaky tests, debugging failures, implementing Page Object Model, configuring CI/CD, optimizing performance, mocking APIs, handling authentication or OAuth, testing accessibility (axe-core), file uploads/downloads, date/time mocking, WebSockets, geolocation, permissions, multi-tab/popup flows, mobile/responsive layouts, touch gestures, GraphQL, error handling, offline mode, multi-user collaboration, third-party services (payments, email verification), console error monitoring, global setup/teardown, test annotations (skip, fixme, slow), test tags (@smoke, @fast, @critical, filtering with --grep), project dependencies, security testing (XSS, CSRF, auth), performance budgets (Web Vitals, Lighthouse), iframes, component testing, canvas/WebGL, service workers/PWA, test coverage, i18n/localization, Electron apps, or browser extension testing. Covers E2E, component, API, visual, accessibility, security, Electron, and extension testing.

Skill
currents-dev

Agent Migration Plan

98

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

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

Skill
wshobson

Playwright Migration Guides

94

Step-by-step migration guides for moving to Playwright from Cypress or Selenium/WebDriver — command mappings, architecture changes, and incremental adoption strategies.

Skill
testdino-hq

© 2025 SkillRepo · Find the right skill, skip the noise.