E2E: hybrid swap tx path without conditional test.skip #193
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic#193
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem statement
frontend-dapp/e2e/hybrid-swap.spec.tsuses conditionaltest.skip(no dual-CW20 pair, paused pair, no route, no balance). Default CI/local path must execute a funded hybrid swap and assert book + pool legs without skipping for environment gaps alone.Evidence / context
docs/testing.md.make deploy-local+ dev wallet funding policy inscripts/qa/README.md.Proposed solution
test.describe.configureproject that guarantees chain state).book_return_amount/ hybrid disclosure UI).Acceptance criteria
test.skipfor missing funds/pair/route.frontend-dapp/e2e/README.md.Priority
P1
mentioned in issue #201
mentioned in commit
947ff8cdfcImplementation (merged to
main@947ff8c)Replaced conditional
test.skipon the default Playwright path with strict prerequisite checks and chain seeding for hybrid swap E2E (GitLab #193).What changed
scripts/e2e-seed-hybrid-book.sh— idempotently places a resting bid on the first dual-CW20 factory pair (hybrid book legs paying token0 match bids). Env:E2E_HYBRID_SEED_BID_ESCROW,E2E_HYBRID_SEED_BID_PRICE.frontend-dapp/e2e/global-setup.ts— runs the seed aftere2e-provision-dev-wallet.sh.frontend-dapp/e2e/helpers/hybrid-e2e.ts—requireDualCwPair,requireHybridControlsVisible,skipOrFailIfPairPaused,assertHybridSwapCtaNotBlocked(strict vsREQUIRE_LOCALTERRA=0optional skips).frontend-dapp/e2e/hybrid-swap.spec.ts— hard failures for missing pair/route/balance/pause on default path; on-chain case assertslimit_order_filland positivebook_return_amounton theswapwasm event.docs/testing.md,frontend-dapp/e2e/README.md,docs/limit-orders.md,skills/AGENTS_E2E_HYBRID_SWAP.md(cross-linked fromAGENTS_HYBRID_QUOTING.md).Verification checklist
docker compose up -d localterra && bash scripts/deploy-dex-local.shcd frontend-dapp && pnpm exec playwright test e2e/hybrid-swap.spec.ts— 3 passed, no skips on default pathe2e-seed-hybrid-book: resting bid seeded(or skip when head already set)limit_order_fillandbook_return_amount> 0Hybrid (pool + limit book)orIndexer hybrid) + limit-book alert doc linkREQUIRE_LOCALTERRA=0 pnpm exec playwright test e2e/hybrid-swap.spec.tsstill skips when LCD absent@brouie — please run the checklist on a fresh LocalTerra deploy when you have a moment and confirm the default CI E2E job stays green.
Leaving this issue open until verified.
mentioned in issue #195
mentioned in commit
c99b4174feVerification complete (2026-05-27)
Verified GitLab #193 on LocalTerra + deployed factory + indexer. 3/3 hybrid-swap Playwright tests pass on the strict default path (
--project=e2e-tx), with notest.skipfor missing funds/pair/route.Checklist
.env.local; shared compose project)npx playwright test e2e/hybrid-swap.spec.ts --project=e2e-tx— 3 passed, no skipse2e-seed-hybrid-book: bid book already has head order …; skipping(idempotent re-run)limit_order_fillandbook_return_amount> 0frontend-dapp/e2e/README.md; CI workflow runs deploy + global setup (.github/workflows/test.yml)Fixes merged to
main@c99b417scripts/lib/e2e-terrad-tx.sh— retryterrad txon account sequence mismatch (bot swarm / concurrent LocalTerra traffic during global setup).frontend-dapp/e2e/hybrid-swap.spec.ts— on-chain case relies on global-setup book seed instead of placing a UI bid at price1(invalid vs live reference); scoped success alert to swap panel.Notes
test1) not contending with the 30-worker bot swarm; swarm was stopped for the test run and relaunched after.:3000.