harb/tests/e2e
openhands 3507538fce fix: Dozens of bare waitForTimeout() calls remain throughout e2e tests (#418)
Replace all 10 bare waitForTimeout() calls in tests/e2e/usertest/helpers.ts
with proper event-driven Playwright waits per AGENTS.md Engineering Principle #3
("replace when touched"):

connectWallet():
- Remove 500ms resize-event sleep: connectButton.isVisible({ timeout: 5_000 })
  already waits for the layout to settle after the resize event
- Remove 2000ms "connector init" sleep: the subsequent isVisible check was
  already event-driven
- Replace 2x 1000ms panel-animation sleeps with
  injectedConnector.waitFor({ state: 'visible' }) — the .connectors-element
  appearing is the exact observable DOM event
- Remove 2x 2000ms "handshake" sleeps: walletDisplay.waitFor() at the end of
  the function is the correct gate for connection completion

attemptStake():
- Remove 3000ms post-goto sleep: tokenAmountSlider.waitFor() at the next line
  is the correct page-load gate
- Remove 2x 500ms debounce sleeps after fill/select: stakeButton.waitFor()
  downstream is the correct reactive-state gate
- Remove 3000ms post-transaction sleep: the button returning to "Stake" text
  (waitFor at line 619) is already the correct transaction-completion gate

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-06 08:47:22 +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: E2E test files use file-level eslint-disable for no-restricted-syntax, suppressing all future rules in that group (#451) 2026-03-06 01:12:26 +00:00
02-max-stake-all-tax-rates.spec.ts fix: E2E test files use file-level eslint-disable for no-restricted-syntax, suppressing all future rules in that group (#451) 2026-03-06 01:12:26 +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 feat/ponder-lm-indexing (#142) 2026-02-18 00:19:05 +01: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: E2E test files use file-level eslint-disable for no-restricted-syntax, suppressing all future rules in that group (#451) 2026-03-06 01:12:26 +00:00