Stop Writing End-to-End Tests. Harvest Them.
2026-02-02
How I replaced the manual QA cycle with crawl-generated Playwright tests, OpenTelemetry traces, and a Grafana dashboard.
The Problem Everyone Knows But Nobody Fixes
Here’s the cycle I’ve lived through on every team I’ve been on. You’re deep in a sprint building features. You know you should be writing end-to-end tests. You don’t, because the feature is still changing and maintaining those tests while the UI is in flux is a full-time job nobody signed up for.
You get to UAT. The QA team runs through their manual test cases. Bugs get filed, fixes get made, more manual passes happen. Eventually everything looks good. Someone says, “Alright, let’s go to production. We’ll write the end-to-end tests later.”
You don’t.
The next sprint starts. New features. The app keeps changing. Those end-to-end tests never get written, because the cost of writing and maintaining them by hand is just too high relative to everything else competing for your time.
And if you’re lucky enough to have a QA team that does maintain a suite of end-to-end tests, the results live in TestRail or some equivalent where nobody outside QA ever looks at them. A test fails, someone files a ticket that says “checkout flow test failed,” and the developer has to go reproduce it manually because there’s no connection between the failure and what actually happened in the browser.
This is the problem I set out to solve: make end-to-end tests cheap to create, cheap to run, and easy to debug when they fail.
The Three-Part Solution
The approach breaks into three tools that work together:
SmokeHarvest crawls a known-good instance of your application using a Playwright MCP server. It explores the app the way a user would — clicking links, filling forms, navigating flows — and generates Playwright test scripts from what it discovers. You don’t write test cases. You harvest them from a working app.
SmokeShow is an open-source Python library that wraps Playwright with OpenTelemetry instrumentation. When you run the harvested tests, every action — every click, navigation, form fill, and assertion — produces a span in a trace. One test suite run becomes one trace. Test cases are child spans. Individual actions are grandchild spans.
Grafana (with Alloy, Tempo, and Jaeger) gives you a visual waterfall of the entire test run. You can see exactly what happened, in what order, how long each step took, and where it broke.
Why Harvest Instead of Write?
The key insight is about timing. The best moment to capture what your application does is right after UAT, when you have a known-good state. The app works. Manual testers have verified it. That’s your baseline.
SmokeHarvest uses the Playwright MCP server to crawl that known-good instance. It discovers the pages, the navigation flows, the interactive elements. It generates Playwright scripts that codify what “working” looks like right now.
This flips the traditional model. Instead of a developer spending days writing test cases that describe what the app should do, you extract tests from what the app actually does. The app is the spec.
You still curate the output — not every crawled flow is worth keeping as a regression test. But starting from “here’s everything the app does” and trimming down is far faster than starting from a blank file and building up.
Why Traces Instead of Pass/Fail?
Traditional test runners give you a green checkmark or a red X. Maybe an error message. If you’re lucky, a screenshot. Then you go reproduce the failure locally.
With SmokeShow, a test run produces an OpenTelemetry trace with a three-level span hierarchy:
suite("checkout-regression")
test("add-to-cart")
navigate(https://app.example.com/products)
click(button.add-to-cart)
assert_visible(div.cart-summary)
test("complete-checkout")
navigate(https://app.example.com/cart)
fill(input#email, "test@example.com")
click(button#submit-order)
assert_visible(div.order-confirmation) ← FAILED
When that assertion fails, the span carries attributes telling you exactly what was happening: the current page URL, the selector it was looking for, the page title, any domain-specific metadata you’ve added. The test case span has a failure_url attribute that links directly to the page state where the failure occurred.
Open the trace in Jaeger or Grafana Tempo and you get a visual waterfall. You can see the test was on the right page, the form fill succeeded, the submit button was clicked, but the confirmation div never appeared. You don’t need to reproduce anything. The trace is the reproduction.
Domain-Specific Metadata Changes Everything
Here’s the part that surprised me. Once you have spans, you can put anything on them.
In my ARC Raiders damage tracker app, the E2E tests carry arc.* attributes: how many items are on the home page, what threat level a creature has, how many strategies are listed on a detail page. These aren’t test assertions — they’re observations.
Now I can track content changes over time through my test telemetry. If a data update accidentally drops all strategies for a creature, arc.detail.strategy_count goes to zero in the next test run and I see it in Grafana before any user reports it. The E2E suite becomes a content monitoring system for free.
This is metadata that would never exist in TestRail. It only exists because traces give you a natural place to attach arbitrary context to every action your tests perform.
The Feedback Loop
Put it all together and the cycle becomes:
- Harvest — Crawl the known-good app after UAT. Generate Playwright scripts.
- Run — Execute the scripts through SmokeShow. Traces flow to Alloy → Tempo.
- Debug — When something fails, open the trace in Grafana. See exactly what happened. Click the failure URL to see the page. Fix the issue.
- Repeat — After fixes, re-harvest to update the baseline. The test suite evolves with the app.
The expensive part of end-to-end testing was always the human time: writing tests, maintaining them as the app changes, and debugging failures with insufficient context. This approach attacks all three. Harvesting replaces writing. Re-harvesting replaces maintenance. Traces replace manual reproduction.
Try It Yourself
SmokeShow is open source: github.com/gotoplanb/smokeshow
The ARC Raiders damage tracker is a working example of a project using SmokeShow for its E2E suite: github.com/gotoplanb/arc-damage-tracker
The stack runs locally with Docker Desktop and Grafana Alloy. You’ll need:
- Python with Playwright installed
- Grafana Alloy accepting OTLP on port 4317
- Jaeger or Tempo for viewing traces
The screencast above walks through the full workflow end to end.