Skip to main content
Enter TitanOS
Demo project: QA testing and test automation for a web app

Playwright test suite for a web app: 12 automated tests, 5 bugs caught

A typical QA job: "our checkout feels off, find what is broken, and give us tests so it stays fixed." I set myself that brief on a sample shop with a search box, a cart, a discount code and a checkout form. I seeded five realistic defects, the kind that slip through when nobody tests the unglamorous paths.

6 of 12
tests failed on the buggy build, mapping to 5 bugs; all 12 passed on the fixed build
$20.00 to $27.00
two $15 items with code SAVE10: buggy build against fixed build
17.7 s
full run on the fixed build, on my machine

Evidence label: SYNTHETIC

Demo project. Everything here was built to show the work. The app is a small shop I wrote with invented products and no real customer data. No client is involved.

How fast

This demo took one working session. For a real app, a small first pass like this (core flows, bug report, 10 to 20 tests) is usually a few days once I have access to a test environment. Larger apps are scoped after I have seen them. I only quote a time once I have looked at the app.

Fast is nice. What did it cost?

What it cost

No client money and no paid services were involved. The demo was built and run on my own machine, and no dollar figure per build is claimed. Anything that runs live for a client runs on the client's own accounts and keys, so their usage is never fronted by us.

What was built

  • A zero-dependency Node app with two builds: one with the five bugs, one fixed.
  • A Playwright test suite of 12 automated tests covering search, cart, discount, removal, checkout and an empty cart.
  • A written bug report with severity and exact repro steps for each defect.
  • A one-command runner that tests the buggy build first, then the fixed one.
  • Each test drives a real headless Chromium browser the way a customer would: type, click, read the screen. I named tests after the bug they guard, so a red line tells you what broke without opening a log.
  • The five defects were: search ignoring letter case, zero or negative quantities accepted, the SAVE10 code taking a flat $10 off instead of 10 percent, the total not updating after removing an item, and checkout accepting "sam@" as an email.
  • The tests check expected behaviour, not the current behaviour of the app. I ran the suite on the buggy build first, then on the fixed build.
  • What a client gets: A bug report your developers can act on without a call to ask what I meant.
  • An automated suite in plain JavaScript, in your repository, that runs with one command.
  • Tests named after real risks, so they double as documentation.
  • A failing-then-passing record, so you can see each fix actually worked.

Cheap and fast still has to work. How do we know it does?

How it was checked

On the buggy build, 6 of 12 tests failed. Those 6 failures map to the 5 bugs, because the quantity bug has two tests. The other 6 passed, which shows the suite is not just failing at random. On the fixed build, all 12 passed. The clearest case is the discount: two Lemon Myrtle Tea at $15 with code SAVE10 came to $20.00 on the buggy build and $27.00 on the fixed one. The full run took 17.7 seconds on the fixed build, measured on my machine. The buggy run took about 100 seconds only because each failing check waits for its timeout before giving up.

Screens from the working app

Would it be okay if we talked about something like this for your business? A free consultation is the first step, and a no is welcome.

Book a free consultationAll case studies
Book a free call