Manoj Perla.ENGINEERING NOTES & OPEN SOURCE

Moving 6,000 tests
without losing their purpose.

An AI-assisted Playwright migration, and the quality questions that matter beyond conversion speed.

Published 19 October 2026 · Updated 14 November 2026 · Manoj Perla

The reported outcome

Approximately 6,000 test cases migrated from Selenium to Playwright with AI assistance in about a month. These figures come from my account of the work; the production source and execution records are not published here.

Context and contribution

My background is in Python automation, Selenium, pytest, and cloud-product quality engineering. The migration work I contributed to moved a substantial UI suite to Playwright. This account describes team delivery and my engineering perspective; it does not attribute the entire result to one person or to AI.

The public PagePilot repository is a separate, small demonstration. It gives readers code to inspect without presenting it as the production suite behind the migration figures.

The central problem

A large suite contains valuable business expectations, reusable infrastructure, and old workarounds. Translating each Selenium operation into a Playwright operation can preserve all three indiscriminately. The more useful question is which expectations must survive and which implementation choices should change.

The decisions that deserve attention

These are the engineering lessons I draw from the migration and the review criteria I would carry into another one. They are not a reconstructed execution log.

DecisionWhy it mattersEvidence I would require
Define fixtures and lifecycle before bulk conversion.Generated tests otherwise reproduce inconsistent setup and cleanup.Representative tests using the same configuration and isolation rules.
Review assertions separately from clicks.A runnable test can stop checking the original business outcome.A traceable requirement and a controlled negative case.
Review shared helpers as high-impact changes.One faulty abstraction can affect many migrated scenarios.Focused examples that exercise meaningful edge cases.
Evaluate parallel behavior early.Browser isolation does not resolve shared backend data collisions.Independent data ownership and repeatable parallel outcomes.

A concrete example of preserving intent

Consider an order with a subtotal of 1,000 and a documented 10% discount. Checking HTTP 200 proves that a response arrived successfully; it does not establish that the total is 900. A migration that drops the total assertion can appear successful while losing defect-detection value.

This example is synthetic. The Quality Lab makes it executable: compare a status-only check with the business-rule assertion, then inspect the evidence. It illustrates the review principle without disclosing a production incident.

How to interpret the result

The reported count and timeframe describe delivery scope, not a controlled productivity comparison. They do not establish person-hours saved, assertion equivalence, defect escape rates, or the contribution of AI relative to other changes. Those claims would require additional records.

I have also reported a separate regression-duration improvement from roughly 2.5 hours to 45 minutes. I do not attribute that entire reduction to this migration or combine it into an unsupported before-and-after benchmark here.

What I would measure next time

I would record first-attempt reliability, the status of each preserved business assertion, review effort, and diagnostic usefulness alongside conversion throughput. A small seeded-defect check can help test whether a migrated assertion still detects the behavior it claims to cover.

The lesson is to use AI to accelerate repeatable work while making the resulting behavior easier to inspect. The outcome to protect is the suite’s usefulness to the team.

Inspect the public evidence

PagePilot source and setup — a separate Playwright demonstration.

Quality Lab — executable synthetic example of a weak assertion.

Migration engineering note — a concise review checklist.