E2E: limit place + cancel tx without conditional test.skip #195
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#195
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
Limit order on-chain E2E in
frontend-dapp/e2e/limit-orders-tx.spec.tsskips when the first factory pair is paused or prerequisites are missing. Default CI must place and cancel limits with a funded wallet without environment-only skips.Evidence / context
limit-orders.spec.ts.Proposed solution
test.skipbranches that mask missing setup; fail with clear setup errors.Acceptance criteria
frontend-dapp/e2e/README.md.Priority
P1
mentioned in issue #201
mentioned in commit
b83977d2ecImplementation landed on
main(b83977d)@brouie — please verify on a LocalTerra stack when you have a moment.
What changed
limit-orders-tx.spec.ts: strict place + cancel path — notest.skipwhen the first factory pair is paused or setup is missing (default / CI path).is_paused: false(firstUnpausedDualCwPairine2e/helpers/lcd.ts).place_limit_orderandcancel_limit_order.e2e/helpers/limit-e2e.ts(requireLimitTxPair,selectLimitPairByFactoryIndex, CTA guards); reusesskipOrFailIfPairPaused(L6).frontend-dapp/e2e/README.md,docs/testing.md,docs/limit-orders.md, newskills/AGENTS_E2E_LIMIT_ORDERS_TX.md(cross-linked with hybrid E2E #193 and dev-wallet skill).REQUIRE_LOCALTERRA=0still allows documented skips for jobs without a chain (unchanged pattern).Verification checklist
docker compose up -d localterrabash scripts/deploy-dex-local.sh(createsfrontend-dapp/.env.local)cd frontend-dapp && pnpm exec playwright test e2e/limit-orders-tx.spec.ts.alert-successwithTX:pnpm exec playwright test(or CI E2E job) still greenIssue left open pending your sign-off.
Verification (agent)
Note: GitLab IID 1954 does not exist on this project; work targeted #195 (limit place/cancel tx E2E).
Root cause
limit-orders-tx.spec.tsused default UI price1on bid side while indexed reference was ~0.90, so the place gate correctly disabled submit. Under bot swarm load, occasional account sequence mismatch errors also caused flaky failures.Fix (merged to
mainind68e1a3/ merge4b3c4cf)fillValidLimitPrice()— sets bid/ask price relative to resolved referencesubmitPlaceLimitAndExpectTx()/submitCancelLimitAndExpectTx()— retry with backoff on sequence mismatche2e/README.mdVerification checklist
e2e/limit-orders-tx.spec.ts— place + cancel, wasmplace_limit_order/cancel_limit_order(2/2 passed)frontend-dapp/e2e/README.md/limitsloads Place limit / Cancel limit UI on http://127.0.0.1:3010Run command
COMPOSE_PROJECT_NAME=cl8y-dex-terraclassic bash scripts/with-node.sh --cwd frontend-dapp -- npx playwright test e2e/limit-orders-tx.spec.ts --project=e2e-txmentioned in commit
d68e1a3e03mentioned in commit
4b3c4cf849mentioned in issue #259