What happens with E2E tests after big product code changes

One of the main disadvantages of making big changes to the product code—for example, when changes accumulate in the DEV environment and are then deployed to the UAT environment all at once—is that many E2E tests, which run only in UAT, might fail if the changes are substantial.

Of course, this is not a big deal in itself. We will update the tests, and it might take a couple of days.

The problem is that, among the "noise" produced by all those failed tests, some new real issues might be hidden. We want to find those real issues as soon as possible.

The primary task of the automated testers in this situation is to distinguish between tests that are failing because they have simply become outdated and tests that are failing because of a real issue. Sometimes, a test might be failing for both reasons: one part of the test fails because a locator is outdated, while a later part fails because of a new issue in the product code.

How can we avoid this?

Even if we cannot completely avoid such situations, we could at least reduce their likelihood and frequency by changing the process: run the E2E tests in the DEV or Test environment—whichever environment has fewer accumulated product changes.

This way, smaller, more iterative changes will affect fewer E2E tests at a time, making it easier and quicker to investigate and fix the failing tests.