Test migration

Protractor support has ended: where should you migrate your tests?

Protractor was used for many years to test Angular applications. Its support has ended and the official repository is archived, so it receives no further fixes. If you still use it, you need to assess the risks and prepare a transition without interrupting the checks on which the team relies.

What is the problem?

A tool without official support may not stop working overnight. The risk grows gradually with new browser, Node.js, and other dependency versions. The official project no longer issues routine fixes. Any community or commercial continuation needs to be assessed separately.

Staying can gradually become more expensive if the team repeatedly works around the limitations of an unsupported tool. Migration is not only a one-time cost either: you need to account for analysis, parallel operation, training, and subsequent maintenance.

How we approach it

Playwright is one option. It supports several browser engines and performs automatic element-readiness checks before actions, which can remove some fixed waits. Changing the tool alone, however, will not fix unstable data, the environment, or a flawed test design.

We do not translate line by line. The value lies in the scenarios and assertions: years of knowledge about how the product should behave. We migrate that knowledge to a suite with more maintainable architecture, including the Page Object Model, stable identifiers, and separate data. We do not copy the original suite’s mistakes into the new one.

With managed continuity of regression testing. The migration proceeds gradually, scenario by scenario, and the old and new suites can run side by side for a period. A coverage map helps avoid a planned period without checks of the agreed critical journeys.

Choose a target based on the suite’s needs

Start by listing the capabilities you need. Does the application use a single browser, or do your tests also involve simultaneous users, new windows, external sign-in and different browsers? The chosen tool must support your actual scenarios in the environment where you will run them.

Option What to check before deciding
Playwright Support for the required browsers, sign-in and user isolation. Python can use pytest-playwright, while TypeScript uses Playwright Test. These are different test environments, so configuration and plugins cannot be transferred literally.
Selenium / WebDriver Use of existing infrastructure, particularly Selenium Grid. Similar APIs may help with migration, but test execution, reports and data setup also need to be provided or migrated.
Cypress Suitability for a team working in JavaScript or TypeScript. Python is not a language for its tests. Check the constraints of your scenarios, particularly simultaneous control of multiple browsers and interaction across domains.

Selenium Grid provides remote and parallel execution across environments. Having it does not, by itself, determine your future architecture. Cypress has TypeScript support and its own constraints, which need to be compared with your journeys. For Playwright, use documentation for Python or TypeScript according to your chosen environment.

The ng e2e command does not prescribe a single tool either. Angular CLI uses the configured e2e builder. Installing a new builder does not replace the contents of existing tests.

What to establish in the existing project

The inventory needs to cover more than test files:

Older AngularJS tests may contain by.model and by.binding locators. Avoid mechanically replacing them with CSS based on the page’s internal structure. Find a stable way to identify the same element, such as a field label, a role with a name or an agreed test ID. Playwright’s locator documentation describes these options.

Also check whether the suite uses the old Control Flow. Angular’s migration FAQ notes that migration to selenium-webdriver requires removing that dependency and correctly awaiting operations with async / await. Similar method names do not guarantee equivalent behaviour.

Automatic waiting does not confirm the result

Protractor used Angular Testability to determine application stability. Playwright checks element readiness before actions, including visibility and the ability to receive clicks. These mechanisms check different things. A clickable button does not mean that the correct data has loaded or that a change has been saved on the server.

Illustrative example: a user changes a product quantity to two and saves the order. The new test needs to check the correct product, a quantity of two and confirmation that it was saved. Completion of the click or disappearance of the form is insufficient. The expected result comes from the requirement, rather than the value the application has just returned.

If the new test fails, establish whether it needs to wait for the result, identify the element correctly, prepare data or report a product defect. A longer fixed delay or a forced click is not a universal remedy.

Choose a pilot that exercises demanding capabilities

Migrate a normal journey, a scenario that writes data and a case that depends on a specific integration. This might involve returning from external sign-in or interaction between two users. The exact choice depends on your application. Three simple sign-in tests will not check the capabilities needed by the rest of the suite.

Run the pilot in the target CI environment as well. Assess successful execution, understandable failures and the time needed to diagnose them. In a controlled test environment, also check a known discrepancy, such as saving one item instead of two. The assertion must catch that error. A failure during account setup does not demonstrate that the order check works.

The outcome should be a decision about whether the tool supports the required scenarios, which parts need reworking and how the effort estimate has changed. A pilot does not prove that the entire regression suite has been migrated.

When to retire the original suite

In the gradual migration map, connect each agreed scenario to its original and new tests, data, expected result and responsible person. During parallel operation, do not use the same accounts and records for independent writes. The suites could interfere with each other.

Before retirement, check that CI actually selects and executes the new tests. Preserve the required reports and agree on what to do if the new suite fails. Returning to the old suite is an option only if it can still perform the relevant check. Calling a broken test a backup will not make it work.

Once migrated coverage has been verified, remove obsolete jobs, dependencies and access according to the agreed procedure. Closing the migration should confirm the handover of knowledge and routine maintenance, rather than merely removing Protractor from the packages.

What you gain

Next step

Create an inventory of active, skipped, and critical scenarios. You can plan their gradual migration during a no-obligation consultation.

Related topics

You might also be interested in

We will preserve the years of knowledge stored in your tests

Is your suite built with an unsupported tool or written in a language nobody in the company understands? We migrate it gradually and reduce the risk of gaps in key checks.