Replace the try/catch on observing the transient 'Submitting…' button text with a
two-phase disabled→enabled check. The button gains the `disabled` attribute the
moment `swapping=true` and loses it when the swap finishes. By placing
`toBeEnabled({ timeout: 60_000 })` unconditionally after the try block, both
paths (fast RPC where disabled state cycles in <100 ms and slow RPC where it is
clearly observable) now wait for the actual ready state rather than falling
through to only a 2-second static guard.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| usertest | ||
| 01-acquire-and-stake.spec.ts | ||
| 02-max-stake-all-tax-rates.spec.ts | ||
| 03-verify-graphql-url.spec.ts | ||
| 04-recenter-positions.spec.ts | ||
| 05-optimizer-integration.spec.ts | ||
| 06-dashboard-pages.spec.ts | ||