There’s a point in almost every browser automation project where someone says:

“The tests are getting flaky.”

And then the team starts fixing the tests.

Longer waits. More retries. New selectors. Another helper function. Maybe a wrapper around the wrapper around click().

Sometimes that’s the right answer.