Migrate Protractor to Playwright
ProprietaryConverts Protractor E2E specs written with Jasmine to Playwright tests alongside Protractor, turning Protractor's control flow and its promises into awaited Playwright calls and web-first assertions, and writes each as a *.spec.* file in a playwright directory next to the Protractor config, with copies of the page objects it imports, which take a page. A spec is converted only when every statement in it converts faithfully; otherwise it is left as it is, its blockers are marked, and the reasons go to the ProtractorSpecMigration and ProtractorMigrationWork data tables. Writes a playwright.config.ts from the Protractor config and the angular.json target running it (baseUrl, the dev server, timeouts, browser), adds the newest @playwright/test the project's Node and TypeScript run and a test:e2e script running it, and keeps jest and vitest from collecting the new tests. Protractor stays as it is: its specs, configs, angular.json targets, dependencies, scripts and CI jobs are not changed, and the ProtractorRetirement 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.
io. moderne. javascript. migrate. playwright. ProtractorToPlaywrightmod run . --recipe= io. moderne. javascript. migrate. playwright. ProtractorToPlaywrightInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.