PRODUCT.ENGINEER
ManifestoThe RolePlaybookLoops
All loops
TestingManualHardened

E2E Until Green

Run Playwright end-to-end tests, fix failures, repeat until suite passes.

Compatible tools:Claude CodeCursor
Start the "E2E Until Green" loop.

- Goal: Full E2E test suite passes with zero failures.
- Max iterations: 10
- Between iterations run: `npx playwright test`
- Exit when: Playwright exits 0 with all tests passing.

Steps:
1. Run the full E2E test suite
2. If all tests pass, stop — exit condition met
3. If tests fail, identify the first failing test
4. Read the error message and screenshot/trace (if available)
5. Determine if the failure is: a real bug in the app, a flaky test, or a test that needs updating
6. Fix the root cause (app code for bugs, test code for stale selectors/assertions)
7. Re-run just the fixed test to confirm: `npx playwright test <file> --headed`
8. Run the full suite again to check for cascading effects

Self-pacing instructions: After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when exit condition passes or max iterations reached. Give a short status update each pass.

How it works

E2E Until Green

passfailbugstaleRun E2E suiteAll tests pass?Diagnose failureBug or stale test?Fix app codeUpdate testSuite green
product.engineer

Owning the whole loop, from idea to impact.

Learn

  • Blog
  • Manifesto
  • Authors
  • RSS Feed

Tools

  • Loops
  • Playbook
  • Discovery
  • Cloud Maturity
  • 5 Whys

Opportunities

  • Jobs
  • Hot Jobs
  • Companies
  • The Role
© 2026 product.engineer
||