harb/tests/e2e
johba 9da1fb820e fix: detect local swap widget by container class, not wallet-gated input
In CI (VITE_ENABLE_LOCAL_SWAP=true), the LocalSwapWidget renders a
"Connect your wallet" message when no wallet is connected. The previous
check looked for [data-testid="swap-amount-input"] which only appears
with an active wallet, causing the test to fall through to the Uniswap
link check (which also doesn't exist in local mode).

Fix: detect local swap mode via the .local-swap-widget container class
which is always rendered. Also add force:true for mobile CTA click.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 18:03:28 +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: detect local swap widget by container class, not wallet-gated input 2026-03-23 18:03:28 +00:00