Migrate Cypress to Playwright

Proprietary

Converts Cypress E2E specs to Playwright tests alongside Cypress, turning Cypress's implicit command queue into awaited Playwright calls, and writes each as a *.spec.* file in a Playwright test directory. A spec is converted only when every command in it converts faithfully; otherwise it is left as it is, its blockers are marked, and the reasons go to the CypressSpecMigration and CypressMigrationWork data tables. Writes a playwright.config.ts from cypress.config.* (baseUrl, viewport, retries, test id attribute), adds @playwright/test and a test:e2e script running it, and keeps jest and vitest from collecting the new tests. Cypress stays as it is: its specs, config, support files, dependencies, scripts and CI jobs are not changed, and the CypressRetirement data table lists, per project, what to remove once the Playwright tests replace them. A project to which @playwright/test cannot be added is left unchanged.

org.openrewrite.javascript.migrate.playwright.CypressToPlaywright
mod run . --recipe=org.openrewrite.javascript.migrate.playwright.CypressToPlaywright

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.