You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add E2E browser testing for web app development #374
Integrate e2e BDD (behavior-driven development) with browser testing for web developement by default, using a similar approach to discussed in this article.
Validates feature behavior with browser automation — not just inspecting code differences or running unit tests. For web UIs this means simulating user behavior (navigate, click, fill, assert content) and checking true end-to-end outcomes.
Only toggles a feature’s passes flag when end-to-end conditions succeed.
Prevents superficial success (passing code that still fails user workflows).
By requiring real automation checks before moving forward, the system minimizes regressions and ensures every change actually behaves in the running application.
Reacted by Magno Oliveira, traffaldino, jz, lionelhorn, Tri Rizki Rifandani and Deyan Dimitrov
the BDD approach where browser tests gate feature completion is exactly right, and it's the piece most teams skip because writing those tests feels like double the work. the trick is generating the initial test scaffold automatically rather than hand-writing every spec. we've been running a setup where an AI agent crawls the running app, discovers the user flows, and generates Playwright test files that act as the pass/fail harness. the generated tests are standard Playwright code so you can modify them directly, no proprietary format.
the key insight from the Anthropic article is that the feedback loop needs to be fast. if your E2E suite takes 10 minutes, agents won't use it effectively. we found that running only the tests tagged for the feature being changed (rather than the full suite) keeps the cycle under 30 seconds, which is fast enough to be useful as agent feedback. the full suite runs on commit.
Activity
obra commentedon Jan 30, 2026
Yep. This is something I very much want us to have.
mailingfeng commentedon Apr 6, 2026
agent-browsermay one of the options ?m13v commentedon Apr 7, 2026
the BDD approach where browser tests gate feature completion is exactly right, and it's the piece most teams skip because writing those tests feels like double the work. the trick is generating the initial test scaffold automatically rather than hand-writing every spec. we've been running a setup where an AI agent crawls the running app, discovers the user flows, and generates Playwright test files that act as the pass/fail harness. the generated tests are standard Playwright code so you can modify them directly, no proprietary format.
the key insight from the Anthropic article is that the feedback loop needs to be fast. if your E2E suite takes 10 minutes, agents won't use it effectively. we found that running only the tests tagged for the feature being changed (rather than the full suite) keeps the cycle under 30 seconds, which is fast enough to be useful as agent feedback. the full suite runs on commit.
m13v commentedon Apr 7, 2026
fwiw we built an open source framework that does this, crawls the running app, discovers test scenarios, and generates standard Playwright files. the core test generation engine: https://github.com/assrt-ai/assrt-freestyle/blob/main/src/core/freestyle.ts and the browser orchestration layer that manages contexts: https://github.com/assrt-ai/assrt-freestyle/blob/main/src/core/browser.ts
xfq commentedon Sep 3, 2026
There's a PR for this: #1931