playwright-migration

Convert Cypress or Selenium/WebDriver test suites into Playwright with step-by-step migration guidance.

1|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/swongsuddee/windflu-test --skill playwright-migration-swongsuddee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-migration
Source: https://github.com/swongsuddee/windflu-test/tree/main/.agents/toolkit/playwright-skill/migration
Command: npx skills add https://github.com/swongsuddee/windflu-test --skill playwright-migration-swongsuddee

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill solves the problem of brittle, time-consuming test rewrites when moving from Cypress or Selenium/WebDriver to Playwright by giving you direct, pattern-based translations and an incremental adoption path.

Core Features & Use Cases

  • Cypress → Playwright command mapping: Convert common Cypress commands and assertions into Playwright locators, actions, and web-first assertions.
  • Selenium/WebDriver → Playwright idioms: Translate waits, selectors, interactions, frames, and assertions into Playwright’s auto-waiting and locator model.
  • Incremental migration strategy: Start with infrastructure and helpers (fixtures, auth storage state) and then migrate tests in priority order while reducing flakiness.

Quick Start

Ask the AI: “I’m migrating my Cypress suite to Playwright—map my cy.* commands and my auth/session approach into Playwright, and give me an order-of-operations plan for converting the first few specs.”

Frequently Asked Questions about playwright-migration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate Cypress tests to Playwright?

Migrate Cypress tests to Playwright by translating cy.* commands into Playwright locators and web-first assertions. This process provides direct, pattern-based command mappings and an incremental adoption path to reduce rewrite complexity and test flakiness.

How do I convert Selenium WebDriver waits and selectors to Playwright?

Convert Selenium WebDriver waits and selectors to Playwright by replacing explicit waits with Playwright’s auto-waiting locator model. This translation maps interactions, frames, and assertions directly into idiomatic Playwright patterns for stable execution.

What is the best way to handle auth and session state when moving to Playwright?

Handle auth and session state when moving to Playwright by reusing authentication via storageState. This approach allows you to start migration with infrastructure and helpers, setting up auth storage state before migrating tests in priority order.

Can I incrementally migrate my test suite to Playwright?

You can incrementally migrate a test suite to Playwright by starting with infrastructure setup like fixtures and auth storage state. This strategy allows you to migrate tests in priority order while reducing flakiness during the transition.

How do I translate network request interception from Cypress to Playwright?

Translate network request interception from Cypress to Playwright using pattern-based mappings for request interception. This ensures complete coverage for common Selenium and Cypress constructs by applying consistent routing and interception patterns.