Migration speed is useful only when the resulting tests retain their intent and remain maintainable.
My reported work includes an AI-assisted migration of approximately 6,000 test cases from Selenium to Playwright in about a month. This is an experience-based account of a team effort, not an independently audited productivity benchmark. The public PagePilot framework is a separate demonstration, not the production suite behind that number.
Set the target patterns before scaling conversion
The existing suite contains both business knowledge and accumulated workarounds. Define browser lifecycle, fixtures, configuration, authentication, page components, and failure evidence before expanding conversion. Otherwise AI can reproduce inconsistent patterns at the same speed that it produces code.
Preserve intent, not just the interaction sequence
A test that clicks Save and sees a notification may still miss an incorrect persisted value. Review the original business assertion and its target state, then decide how to express it in the new framework. A passing migrated test is not enough to establish equivalence.
For a public, synthetic example, the Quality Lab returns HTTP 200 with an incorrect discounted total. A status-only check passes; a business assertion detects the defect. This is the kind of distinction that a migration review needs to preserve. It is an illustration, not a disclosed production incident.
Treat parallel execution as a design constraint
Independent contexts help separate browser state, but they do not automatically isolate backend data. Test accounts, mutable records, and cleanup need their own ownership rules. Increasing workers can expose contention that a serial run hides.
Keep AI output reviewable
Use agreed conventions and small batches. Check whether generated code reuses the intended fixtures, retains meaningful assertions, and captures diagnostic evidence. A reusable component deserves particular scrutiny because its behavior affects many tests.
The case study separates the reported outcome, the public evidence, and the lessons I would apply to a future migration. It also explains why the migration count alone is an incomplete measure of success.
A practical acceptance gate
Before retiring a Selenium batch, map each case to its Playwright replacement or an explicitly reviewed retirement. Check the business assertion, isolated and parallel execution, cleanup, and failure evidence. Track converted, reviewed, and accepted cases separately: generated code is not yet accepted coverage.
CONTINUE READING
Quality Engineering ArchitectureFrom Test Automation to Quality Engineering Platforms
Mature test automation should evolve from scripts and frameworks into shared engineering platforms that provide quality, performance, observability and delivery intelligence.
Read essay · 2 minPerformance EngineeringWhy P90 Tells You More Than Average API Response Time
Mean API latency often hides slow-user experiences. Percentiles such as P90 provide a clearer view of performance distribution and regression.
Read essay · 2 minBack to all writing