Extract reusable helpers from sovereign-exit/always-leave.spec.ts into three focused modules under scripts/harb-evaluator/helpers/: - helpers/wallet.ts: connectWallet, disconnectWallet, getEthBalance, getKrkBalance — UI connect/disconnect flow and on-chain balance reads. - helpers/swap.ts: buyKrk (navigates to the real /app/get-krk page and drives the LocalSwapWidget, now that #393 fill() fix is in), sellAllKrk (approve + exactInputSingle via window.ethereum, no UI dependency). - helpers/assertions.ts: expectBalanceIncrease (snapshot/action/assert pattern for any token or ETH), expectPoolHasLiquidity (slot0 + liquidity sanity check on a Uniswap V3 pool). always-leave.spec.ts is refactored to use these helpers and to navigate to /app/get-krk instead of the /app/cheats workaround introduced before the #393 fix landed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| harb-evaluator | ||
| bootstrap-common.sh | ||
| build-ci-images.sh | ||
| build-kraiken-lib.sh | ||
| ci-bootstrap.sh | ||
| dev.sh | ||
| quick-screenshot.mjs | ||
| review-poll.sh | ||
| review-pr.sh | ||
| run-usertest.sh | ||
| screenshot-stake-page.mjs | ||
| sync-tax-rates.mjs | ||
| wait-for-service.sh | ||
| watch-kraiken-lib.sh | ||