Practice sites teach the happy path. The job is the other 10%

Tudor Brad, BetterQA founder, and two colleagues around a meeting table with laptops

A tester between jobs recently built a free Playwright practice site: 41 exercises, beginner to advanced, each with a brief, the APIs it practises and a hidden solution. It is a generous piece of work, and the thread under it on r/QualityAssurance was mostly people saying thank you.

The most useful reply was one sentence long. A reader pointed out that practice sites teach the happy path, while real work is mostly figuring out why a test fails once in ten runs.

That is the gap we see on almost every project we join.

Green tests are not the hard part

Writing a test that passes against a calm page is a solved problem. Recorders, frameworks and assistants will all produce one in seconds. The work that decides whether a suite is worth anything starts the first time it goes red for no obvious reason:

  • a response that arrives 200 ms later than usual
  • two requests racing, where the order changes the result
  • data left behind by the previous run
  • a test that passes alone and fails in parallel

None of these show up in a tutorial, because a tutorial controls the environment. Production never does.

Speed of generation is the wrong number

The same thread drifted into an argument about a generated framework that can produce a full suite in seconds after crawling a site. Fast generation is useful. But a suite made of smoke tests that open a page and check a heading tells you the server is up, not that the product works. A team that measures coverage by test count ends up with hundreds of tests and the same bugs in production.

The useful question is not how fast the tests were written. It is how many real failures they caught, and how often a red build turned out to be the test’s fault rather than the product’s.

What we would add to a practice site

If you are learning automation, or hiring people who are, these exercises are worth more than another login form:

  1. A page whose content loads after a random delay. Make the test stable without a fixed sleep.
  2. Two buttons that fire requests in different orders. Write a test that catches the wrong final state.
  3. A test that fails one run in ten. Find out why before you add a retry.
  4. A suite that passes alone and fails in parallel. Find the shared state.

The site’s author already has a flaky-test section and plans to add race conditions. That is the right direction.

The part people skip

Flaky tests are not a tooling problem. They are a sign that someone understood how the page behaves when everything is calm, and nobody asked what happens when it is not. That question is what a tester is for. Automation makes the answer repeatable; it does not ask the question.

If your suite is green and your users still find the bugs, we are happy to look at it with you: betterqa.co.

Share the Post: