playwright is solid but i spend more time fixing tests than writing features

Posted by its_mayank0708@reddit | ExperiencedDevs | View on Reddit | 82 comments

Been using playwright for about 8 months now, it's definitely better than selenium and cypress in terms of speed and reliability but i still find myself spending way too much time on test maintenance.

The tests themselves run great, super fast, good API, love the tooling. But every time we do any kind of ui refactor or design update, I'm back in the test files updating locators. We use data-testid pretty consistently but even then, components get renamed, page structures change, new modals pop up unexpectedly.

I'm at the point where i'm wondering if there's something with less maintenance overhead. I've looked at some of the newer tools that claim to handle this stuff automatically but haven't pulled the trigger yet.

For context, we're a team of 6 engineers at a series a, building a b2b saas product. We have about 150 e2e tests and growing. The tests are valuable when they work but the maintenance burden is starting to outweigh the benefits.

Curious if anyone else has hit this wall with playwright or if i'm doing something fundamentally wrong?