Add E2E coverage for multihop hybrid, trader, protocol, and blacklist (#422) #946
No reviewers
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!946
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-422-e2e-multihop-trader-protocol-blacklist"
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?
Summary
Adds four Playwright E2E specs and supporting helpers for GitLab #422:
multihop-hybrid-tx.spec.ts,e2e-tx): CORAL→IRON router swap (≥2 hops; hybrid ask-book on hop 0 viae2e-seed-hybrid-book.shask seed). Assertslimit_order_fill, return within slippage vssimulate_swap_operations, and attaches a success screenshot. IRON is used instead of COBALT because the seeded EMBER/COBALT pool is too thin for hop-2 spread preflight (≤50% UI slippage cap).trader-page.spec.ts): connected simulated wallet loads/trader/:addrpositions without console errors.protocol-page.spec.ts):/protocolrenders factory + router contract addresses.blacklist-swap.spec.ts): LCD-mockedblacklist_checkblocks Swap CTA for the test wallet.Also extends
scripts/e2e-seed-hybrid-book.shwith idempotent ask seeding for multihop CORAL-pay hybrid, fixes custom slippage locator inswap-ui.ts, and updatesdocs/testing.md+skills/AGENTS_TESTING_MULTIHOP_HYBRID.md.Acceptance checklist
sg docker -c 'bash scripts/with-node.sh --cwd frontend-dapp -- env CI=1 npx playwright test e2e/multihop-hybrid-tx.spec.ts --project=e2e-tx --retries=0'/traderloads positions, no console errorssg docker -c 'bash scripts/with-node.sh --cwd frontend-dapp -- env CI=1 npx playwright test e2e/trader-page.spec.ts --project=e2e-smoke --retries=0'/protocolrenders contract addressessg docker -c 'bash scripts/with-node.sh --cwd frontend-dapp -- env CI=1 npx playwright test e2e/protocol-page.spec.ts --project=e2e-smoke --retries=0'sg docker -c 'bash scripts/with-node.sh --cwd frontend-dapp -- env CI=1 npx playwright test e2e/blacklist-swap.spec.ts --project=e2e-smoke --retries=0'CI=1 make test-e2esg docker -c 'bash scripts/with-node.sh --cwd frontend-dapp -- env CI=1 npx playwright test e2e/multihop-hybrid-tx.spec.ts e2e/trader-page.spec.ts e2e/protocol-page.spec.ts e2e/blacklist-swap.spec.ts --retries=0'→ 4 passedmultihop-hybrid-successinmultihop-hybrid-tx.spec.tsdocs/testing.mdlists new specsskills/AGENTS_TESTING_MULTIHOP_HYBRID.mdupdatedNote: Full
CI=1 make test-e2erun on this VM: 122 passed, 3 failed — failures are pre-existing unrelated specs (a11y-critical-routeslimits tablist,limit-ordersCancel copy,wallet-history-163indexer history). Not introduced by this MR.Third-party verification
Prerequisites: LocalTerra up,
frontend-dapp/.env.local, indexer onVITE_INDEXER_URL(port 3001).Related
Security review — MR !946
Commit reviewed:
da135e81832af2bb3ed42c557e377dbdbb86f678Scope: E2E Playwright specs (
multihop-hybrid-tx,trader-page,protocol-page,blacklist-swap), helpers (blacklist-lcd-mock.ts,multihop-hybrid-e2e.ts),swap-ui.tslocator fix,scripts/e2e-seed-hybrid-book.shask seeding, docs/skills updates.Outcome:
FINDINGS: 0medium+Security review: no medium+ findings on this diff.
Review notes
blacklist-lcd-mock.tsfollows the existingwrap-mapper-lcd-mock.tspattern: Playwrightpage.route('**/*')intercepts only factoryblacklist_checkLCD smart queries in the test browser context; contract address is matched against env/deploy output before fulfillment. This does not weaken on-chain enforcement.factoryAddressFromEnv()reads a fixed.env.localpath for deploy-time contract addresses (public on-chain values); used only in E2E helpers.multihop-hybrid-e2e.tsindexer/LCD calls use constants or chain-derivedterra1…addresses;INDEXER_URLdefaults to localhost and is test-scoped.e2e-seed-hybrid-book.shask-side seeding usesjq --argfor message construction and validates pair/token addresses from LCD beforeterrad_tx wasm executeon LocalTerra.Inline findings: none
mentioned in commit
6ffd7f4488