harb/tests/e2e
johba 4465869788 fix: replace waitForTimeout with event-driven waits in funnel spec
Replace three fixed-delay waitForTimeout calls with proper event-driven
alternatives per AGENTS.md Engineering Principle #1:
- navigateSPA to /app/stake: use waitForSelector('.stake-view, .login-wrapper')
  to detect when the route has mounted (handles login redirect too)
- wallet auto-connect: use waitForFunction to poll __analytics_events for
  wallet_connect, resolving as soon as the event fires

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 19:10:46 +00:00
..
usertest fix: Dozens of bare waitForTimeout() calls remain throughout e2e tests (#418) 2026-03-06 08:47:22 +00:00
01-acquire-and-stake.spec.ts fix: Swap completion detection relies on a fragile timing assumption (#415) 2026-03-06 09:27:17 +00:00
02-max-stake-all-tax-rates.spec.ts fix: Swap completion detection relies on a fragile timing assumption (#415) 2026-03-06 09:27:17 +00:00
03-verify-graphql-url.spec.ts fix: lint: Ban waitForTimeout, setTimeout-as-delay, and fixed sleep patterns (#442) 2026-03-03 20:58:01 +00:00
04-recenter-positions.spec.ts fix: update e2e tests for public recenter() — remove recenterAccess references 2026-03-14 01:44:15 +00:00
05-optimizer-integration.spec.ts fix: Update E2E tests for Optimizer (base) — drop OptimizerV3 bear-market constants 2026-02-26 19:37:12 +00:00
06-dashboard-pages.spec.ts fix: Misleading 'Tax Paid' label — value includes unpaid tax due (#374) 2026-03-06 11:51:45 +00:00
07-conversion-funnel.spec.ts fix: replace waitForTimeout with event-driven waits in funnel spec 2026-03-24 19:10:46 +00:00