Verify #413: fix Advanced settings toggle for E2E #949
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!949
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-413-verify-advanced-toggle"
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
<details>disclosure did not expand under Playwright.aria-expanded) so hybrid book leg and indexer route check remain behind Advanced while E2E helpers can expand reliably.aria-expandedandswap-indexer-route-checkmount.Acceptance checklist
SwapPage.test.tsx—shows retail prefs only when Settings first opens; Playwright screenshotissue-413-settings-retail.pngaria-expanded=falsewhen collapsed; toggle click requiredSwapPage.test.tsxhybrid tests;e2e/hybrid-swap.spec.tsUI + on-chain after fixSwapPage.test.tsx;expandSwapAdvancedSettingswaits onswap-indexer-route-checkfrontend-dapp/test-results/issue-413-settings-retail.png(local verify run)frontend-dapp/test-results/issue-413-settings-advanced.pngmake test-frontendplaywright test --project=e2e-smoke swap.spec.ts(11);--project=e2e-tx swap-tx.spec.ts hybrid-swap.spec.ts wrap-swap.spec.ts(17 after redeploy)SwapPage.test.tsxGitLab #293; E2E snapshot showsSlippage is too high+ retailEnable Expert Modewith Settings closedSwapAdvancedSettings.tsxmax={256}Test plan
Security review
Commit reviewed:
6deb64a6ff242e06fd5e99063435544a4b38879aScope: MR !949 — Advanced Swap Settings disclosure refactor (
<details>→ controlled<button>+ conditional panel); E2E/unit test selector updates.Outcome:
FINDINGS: 0medium+Security review: no medium+ findings on this diff.
Review summary
Traced attacker-controlled inputs through changed paths:
openis true; no new props, handlers, or rendering sinks.indexerRouteErrorand route hop display remain React text children (auto-escaped); unchanged from pre-MR behavior.No injection, authn/authz bypass, secret leakage, SSRF, XSS, or permission-boundary regressions introduced. Collapsing advanced settings does not bypass expert-mode slippage guards or on-chain swap validation (state/logic unchanged in
SwapPage.tsx).Inline threads: none (no findings).
added 5 commits
main4ca88cb4- Merge branch 'main' into issue-413-verify-advanced-toggleCompare with previous version
Merged latest
mainintoissue-413-verify-advanced-toggle.Conflict resolved:
frontend-dapp/e2e/helpers/swap-ui.ts— kept the branch’saria-expandedcheck onswap-advanced-settings-toggle(instead of main’s route-check visibility probe) so Playwright can expand Advanced settings reliably (#413).Sanity:
SwapPage.test.tsx(27 tests) passed locally.Security review
Commit reviewed:
4ca88cb49f8efdc0dca782312be0d92d3e9c5788Scope: MR !949 — Advanced Swap Settings disclosure refactor (
<details>→ controlled<button>+ conditional panel); E2E/unit test selector updates (includes post-merge conflict resolution inswap-ui.ts).Outcome:
FINDINGS: 0medium+Security review: no medium+ findings on this diff.
Review summary
Re-reviewed after merge of
mainintoissue-413-verify-advanced-toggle(head4ca88cb). Prior review on6deb64astill applies; merge conflict resolution inswap-ui.tsis test-helper only.Traced attacker-controlled inputs through changed paths:
openis true; no new props, handlers, or rendering sinks.indexerRouteErrorand route hop display remain React text children (auto-escaped); unchanged from pre-MR behavior. Collapsing unmounts controls but does not alter parent swap state or submission guards inSwapPage.tsx.aria-expanded, DOM presence checks); no production attack surface.No injection, authn/authz bypass, secret leakage, SSRF, XSS, or permission-boundary regressions introduced. Expert-mode slippage block (
routeSlippageBlocked) and on-chain swap validation are unchanged;hybridMaxMakerscap (max={256}) unchanged.Inline threads: none (no findings).
mentioned in commit
9bc362308d