Commit f981ed3
fix(e2e): wait for Unleash before running tests (#869)
## Summary
- E2E tests fail on `main` with `cy.click() failed because the page
updated` — the "New Session" button gets detached from the DOM by
continuous React re-renders
- Root cause: the frontend retries failed Unleash connections,
triggering re-render loops when Unleash is still starting (DB migration,
pod restarts)
- Fix: add `kubectl wait` for the Unleash deployment in
`wait-for-ready.sh` so all services are stable before tests begin
## Test plan
- [x] Reproduced failure locally on fresh Kind cluster without fix (100%
failure rate)
- [x] Verified fix: fresh Kind cluster with Unleash wait → 57/57 tests
passing
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 07d50e5 commit f981ed3
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
| |||
0 commit comments