Run Playwright end-to-end tests, fix failures, repeat until suite passes.
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