playwright-migration

Guide test suite migration from Cypress and Selenium to Playwright.

5|3|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/zebbern/termstack --skill playwright-migration-zebbern
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-migration
Source: https://github.com/zebbern/termstack/tree/main/.github/skills/playwright/migration
Command: npx skills add https://github.com/zebbern/termstack --skill playwright-migration-zebbern

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps teams migrate test suites from Cypress and Selenium/WebDriver to Playwright with a structured, step-by-step approach, reducing flakiness and enabling modern tooling.

Core Features & Use Cases

  • Side-by-side command mappings and architecture translations to streamline migration.
  • Practical examples and step-by-step guidance for converting UI tests, authentication flows, API interception, and iframe/popup handling.
  • Guidance on setting up Playwright config, fixtures, and authentication strategies to support reliable, maintainable tests.

Quick Start

Install Playwright alongside Cypress and begin by converting a simple test using semantic locators and Playwright's auto-waiting.

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?

Convert Selenium WebDriver tests to Playwright by mapping architectural changes and updating interaction commands. The migration covers setup, fixtures, authentication strategies, and common pitfalls, providing practical patterns for UI, API, and frame interactions.

What is the best way to handle authentication when migrating to Playwright?

Migrate Cypress tests to Playwright by following structured command mappings and architectural translations. Begin by installing Playwright alongside Cypress, then convert a simple test using semantic locators and auto-waiting before expanding to authentication and API interception.

Can I run Playwright and Cypress in the same project during migration?

Yes, you can run Playwright and Cypress in the same project during migration. The recommended quick start approach is to install Playwright alongside Cypress and incrementally convert tests using side-by-side command mappings.

How do I map Selenium WebDriver commands to Playwright?

Map Selenium WebDriver commands to Playwright using side-by-side architectural translations. This structured migration path details command mappings for UI tests, API interception, and iframe or popup handling to streamline the conversion process.

What are common pitfalls when migrating test suites to Playwright?

Common pitfalls when migrating test suites to Playwright include mishandling architectural changes, iframe interactions, and authentication flows. A structured migration path addresses these by providing recommended configurations and practical conversion examples.