Playwright Test Migration
Moves Cypress or Selenium test suites to Playwright in safe stages, so the old suite can finally be deleted.
Claude's review
7/10 Sound migration plan: triage before translating, vertical slices, deliberate break parity checks and a deletion at the end of every slice.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Migrates Cypress, Selenium, WebdriverIO, or Protractor suites to Playwright in staged slices, each with a parity gate before the old test is deleted. Use when porting a legacy browser suite, when deciding which tests are not worth porting, when a half-finished migration has stalled with two suites running in parallel, or when a suite migration needs a plan before anyone starts translating files.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: migrating-tests-to-playwright
description: 'Migrates Cypress, Selenium, WebdriverIO, or Protractor suites to Playwright in staged slices, each with a parity gate before the old test is deleted. Use when porting a legacy browser suite, when deciding which tests are not worth porting, when a half-finished migration has stalled with two suites running in parallel, or when a suite migration needs a plan before anyone starts translating files.'
argument-hint: 'Source framework and suite path, test count, CI setup, and how much of the suite is currently trusted'
user-invocable: true
---
# Migrating Tests to Playwright
Use this skill when an existing browser suite is moving to Playwright and the migration needs to finish.
The characteristic failure is not a hard translation problem. It is a migration that stalls at 60 percent, leaving two suites, two CI jobs, two sets of conventions, and nobody willing to delete the old one because nobody can prove the new one covers the same ground. Everything below is arranged to prevent that: **slices with parity gates, and a deletion at the end of every slice.**
The second thing this skill insists on: a migration is the cheapest opportunity you will ever get to not port the tests that should not exist. A line-by-line translation preserves the old suite's flakiness, its weak assertions, and its coverage gaps, and adds a migration's worth of risk on top.
## When to Use
- a Cypress, Selenium, WebdriverIO, or Protractor suite is moving to Playwright
- a migration is underway and has stalled with both suites running
- someone is about to start translating files and there is no plan
- the question is which tests to port and which to drop
- a framework is being evaluated and the migration cost needs estimating
## Operating Principles
- **Slices, not a big bang.** Migrate a vertical slice, prove parity, delete the old tests in that slice, then move on. Two suites is a temporary state with a deadline, not a phase.
- **Every slice ends with a deletion.** Without it, the old suite survives forever and the migration is never done.
- **Port behaviour, not code.** The old test's intent is the requirement. Its implementation is not.
- **Triage before translating.** Tests that are flaky, redundant, or prove nothing get dropped or rewritten, not carried over.
- **Parity is measured, not asserted.** A slice is done when the new tests fail on the defects the old ones caught.
- **Adopt Playwright's model rather than emulating the old one.** A Cypress-shaped Playwright suite gets the migration cost and none of the benefit.
## Workflow
### Phase 0: Inventory and triage
Do not open a test file to translate until this is finished.
Classify every test in the source suite:
...From jaktestowac's repository, MIT licence.
Related skills
-
Checked
JUnit and Mockito tests
Writes and fixes Java tests with JUnit, AssertJ and Mockito that are deterministic and keep failures visible.
8/101 credit -
Checked
Test code review
Reviews new or changed tests in pytest, Jest, Go and more, so weak tests are caught before merge.
7/101 credit -
Checked
Go table driven tests
Writes Go tests with table cases, fakes, fuzzing, benchmarks and golden files that stay fast and reliable.
8/101 credit -
Checked
MSTest Unit Testing
Writes modern C# unit tests with current MSTest APIs, assertions, data driven tests and lifecycle patterns.
8/101 credit -
Checked
Quarkus Testing
Writes and fixes Quarkus tests using Dev Services containers, with the right profiles, mocks and run commands.
7/101 credit -
Checked
Dotnet Test Hot Reload
Sets up a live .NET test host that reruns your tests automatically each time you edit the code.
7/101 credit