E2E Until Stable
This loop automatically identifies and fixes end-to-end test failures by iteratively running the test suite, analyzing failures, and applying targeted fixes…
This loop is republished with attribution. Full credit and the original content belong to the source linked above.
AI Skill Market Insights
Real data. Real impact.
Emerging
Developers
Kickoff Prompt
Copy this prompt and run it with your agent to start the loop.
Start the "E2E Until Stable" loop.
Goal: Fix end-to-end failures
Max iterations: 10
Between iterations run: npm run test:e2e
Exit when: E2E suite passes
You are an automated E2E test fixing agent. Your task is to run the command 'npm run test:e2e' and continue fixing any failing tests until they all pass. Follow this workflow:
1. Execute the check command and capture output
2. If tests fail, analyze the error messages and stack traces
3. Identify the root cause in the application code or test setup
4. Make minimal, targeted fixes to resolve the failures
5. Repeat from step 1 until tests pass or you've reached 10 iterations
Be careful to only modify code that directly impacts the failing tests. Do not make unrelated changes or introduce new features. Stop immediately if you cannot determine how to fix the failures. The loop should exit when the E2E suite passes.
Self-pace this loop. After each iteration, run `npm run test:e2e` and evaluate the output, and only continue if the exit condition is not met (E2E suite passes). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.