Key takeaways
- Agents routinely verify UI flows live in Chrome, Playwright, or Puppeteer, yet those checks vanish unless someone manually translates them into committed test files.
- Generic AI-generated tests break because the model guesses DOM selectors and state setup; tests grounded in a real verified run reuse observed URLs, interactions, and outcomes.
- 23step TestForge synthesizes runnable Playwright, Cypress, and failure-grounded unit regression suites directly from completed sessions for 2 AI credits per suite.
The bug your agent fixed twice in one month
Watch a modern coding agent fix a subtle frontend regression—say, a filter drawer that fails to clear an active modal on mobile, or a checkout discount input that resets after form validation. The agent spins up the dev server, opens the page in headless Chrome, reproduces the broken state, edits two components, reloads, exercises the flow again, and confirms the UI behaves properly.
Then the PR merges—without an automated Playwright or Cypress test covering that exact sequence. Three weeks later, a different agent refactors the same page and reintroduces the identical bug.
Engineers skip writing the E2E spec for an obvious reason: translating a manual verification session into clean, non-flaky Playwright assertions takes longer than the bug fix itself.
Why grounded test synthesis beats prompt-only test generation
Asking an LLM "write Playwright tests for this diff" produces brittle suites full of hallucinated CSS selectors, wrong route paths, and missing auth or seed setup. The model is guessing what the running application looks like from static code.
A recorded 23step session flips that equation. Because 23step captures the ordered timeline of visited URLs, shell commands, failing-then-passing verification runs, code diffs, and rendered UI states during headless Chrome verification, the synthesizer already has ground truth.
- Real selectors and routes: Flows are anchored to actual pages, states, and interactions observed during the verified run.
- Failure-grounded regressions: Bugs caught and fixed mid-session become targeted unit and integration assertions so the exact failure mode cannot silently return.
- Uncovered branch targeting: Highlights changed code paths in the diff that were never exercised during the agent's verification pass.
Synthesizing runnable specs with TestForge
TestForge reads completed 23step sessions and turns verified browser journeys, API checks, and mid-session bug fixes into clean, runnable Playwright, Cypress, and unit test suites.
Instead of treating QA as an afterthought, solo engineers and QA teams can run TestForge right from a completed session—or pull the generated spec straight into their editor over Plugin MCP—so every fixed bug leaves permanent automated coverage behind.
test("clearing active search resets open detail modal without scroll jump", async ({ page }) => {
await page.goto("/marketplace#catch");
await expect(page.locator("[data-mp-modal]")).toBeVisible();
await page.getByLabel("Search marketplace").fill("stride");
await expect(page.locator("[data-mp-modal]")).toBeHidden();
await expect(page.locator("[data-mp-count]")).toContainText("1 result");
}); 23step TestForge · 2 AI credits / suite
Turn verified agent sessions into permanent Playwright, Cypress, and unit tests.
TestForge converts observed browser flows, API checks, and bugs fixed mid-session into runnable regression suites—highlighting uncovered diff branches before your PR ships.
- Synthesizes runnable Playwright and Cypress E2E specs grounded in real verified flows
- Generates failure-grounded unit regressions from bugs caught mid-session
- Scale effortlessly on Pro ($20/mo, 150 credits) or top up with non-expiring Extra Credit Packs
Included in every plan (2 AI credits / suite). Upgrade to Pro ($20/mo) for 150 credits/mo or add Extra AI Credit Packs starting at $15 for 100 credits.
Scale automated regression suites with shared AI credits
TestForge costs 2 AI credits per suite from your shared monthly pool—no extra per-plugin subscription required. Solo power users get 150 credits/month on Pro ($20/mo), teams pool 600 credits/month on Team ($80/mo), and heavy QA pipelines can top up anytime with one-time Extra AI credit packs that never expire.