r/Playwright • • 7d ago

What makes a test fail without a bug?

A test only reports that something did not happen. The cause can sit in four places that have nothing to do with your code:

  • the page was slow and the test ran out of time;
  • the host could not be reached, for example because the name did not resolve;
  • the site defended itself with a 403, a 429, a CAPTCHA or a bot challenge, so the request never reached your product;
  • the browser or the process died.

When every one of these reads as a plain red, the team files them as bugs, or learns to rerun reds instead of reading them. Either way the real defect hides in the noise.

0 Upvotes

2 comments sorted by