Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Slack Engineering 11 min read Research mediumAdept

Agentic Testing: Where Agents Fit in the E2E Testing Stack

Across 200+ agent-driven E2E runs against Slack test workspaces, agents using Playwright MCP were the most reliable (0% failures on a simple thread-reply flow, ~12% on a longer search flow). Playwright CLI agents failed 12–20%, mostly from auth, navigation timing and session instability. Agent-generated Playwright tests ran fastest (~3 min including generation, ~30–45 s raw) but failed ~48% on the complex flow. Agent runs cost $15–30 each, driven by turn count and retransmitted context such as accessibility-tree snapshots rather than model choice; CLI took ~85 turns versus MCP's ~40. The recommendation is to keep deterministic tests for CI and add agentic testing as a top pyramid layer for exploration, debugging and bug reproduction.

Related posts

  • Agents are users, so your software needs evals

    Vercel mediumAdept

    Agents act as users of APIs, CLIs, MCP servers and SDKs, so measuring whether they complete tasks correctly requires evals: tests run many times and scored. An agentic testing pyramid groups checks by LLM call count (deterministic tests, one-turn evals, E2E evals), and a worked example builds an end-to-end eval for a hypothetical coffee-ordering CLI using Harbor, covering goal setting, task design with seeded environments, frozen clocks and per-constraint verifiers, and guarding against reward hacking. Metric choice should follow failure cost: a 60% success rate yields 99% pass@5 but only 8% pass^5, so products where users get no retry should optimize for pass^k, while coding agents with test feedback can lead with pass@k.

  • How We Optimized Browser Use for Deep Agents

    LangChain mediumAdept

    Tool design dominated cost and speed for browser agents: across seven toolsets on 100 WebVoyager tasks, pass rates ranged 78–90%, but Stagehand passed 90% for $1.98 total while Playwright MCP passed 78% for $26.71 at three times the latency. The gains came from code mode (one `run` call batches many actions and keeps intermediate page data out of context, averaging 10 steps versus 26), compact accessibility-tree snapshots with element IDs instead of raw HTML or screenshots, and running inside the browser to avoid per-action CDP round trips. Accepting Playwright-style code beat Stagehand's native API by 5.3 points, and truncating snapshots after the fact didn't help because agents just re-fetched. Replacing fixed sleeps with a 500 ms network-quiet settle wait cut median HardBench time from 182 s to 124 s with no accuracy loss, all validated through trace-driven iteration and evals.

  • Harness design for long-running apps

    Anthropic Engineering mediumAdept

    A GAN-inspired multi-agent harness separates generation from evaluation so Claude can produce distinctive frontend designs and build full-stack apps autonomously over multi-hour sessions. For frontend work, a generator and a Playwright-equipped evaluator iterate 5-15 times. The evaluator grades against four weighted criteria (design quality, originality, craft, functionality) and is calibrated with few-shot score breakdowns, which pushes output away from generic 'AI slop'. For full-stack apps, the harness has three agents: a planner expands a short prompt into a spec, a generator builds in sprints against negotiated sprint contracts, and an evaluator QA-tests the running app with hard per-criterion thresholds. A retro game maker built this way cost about $200 over 6 hours, against $9 and 20 minutes for a solo agent, and produced dramatically better results; tuning a standalone skeptical evaluator proved more tractable than making a generator critique itself.

  • My 2 Cents: I'll gladly spend them to stop staring at test logs

    trivago tech mediumAdept

    trivago added a trailing GitHub Actions job that uses an LLM to triage persistent end-to-end test failures in its Selenium-based trupi suite, where a run-level success rate of only 20% forced manual failure analysis 30+ times a day. The job skips analysis when everything passes or more than 10 tests fail on a platform. It feeds the model a minimal JSON failure report built from retried failures only, plus cross-platform correlation computed with jq, a layered PR context (commit log, diff stat, filtered diff, each truncated) and 24-hour cross-branch history from Elasticsearch. A 50K-token guard drops the detailed diff when the context gets too large, and Cursor CLI runs gemini-3-flash in single-turn ask mode with a "flaky until proven guilty" priority order. Each run takes mostly under a minute and costs about $0.02–0.03, and it can flag flakiness, likely PR regressions or stale locators.

  • We gave cloud agents a phone to QA

    incident.io mediumAdept

    incident.io's Cursor cloud agents now QA React Native pull requests by driving an iOS simulator (EAS Simulator) or Android emulator in the cloud against a per-agent copy of the Go backend with seeded Postgres data, tunnelled back to the agent's VM, and attach claims linked to screenshots and a session recording. Making the app drivable required fixing the accessibility tree across 163 files (roles, testIDs, labels, enforced by lint), deep links for 100+ Expo Router routes, and a dev-only seeded sign-in. Runs take about 11 minutes median, and QA-only runs cost around $7 each. Over two weeks, 42 PRs were QA'd and agents increasingly started runs on their own PRs, while humans still decide whether a change is correct.

The quest for software engineering knowledge.

Look:
Layout: