fix(test): SwapPage fee-discount banner testid drift (#374 verify) #899
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!899
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "verify/issue-374-banner-testid-fix"
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
Verification of GitLab #374 found
SwapPage.feeDiscountRegistryBanner.test.tsx(MR !896) still querieddata-testid="fee-discount-registry-warning"whileSwapPage.tsxrendersswap-fee-discount-registry-warningafter the implementation merge — 2/4 banner tests failed onmain. This MR aligns the isolated banner test file with the live test id (already used inSwapPage.test.tsx).Verification checklist (#374)
registrationQuery.isError→ banner; swap enabledSwapPage.test.tsx+SwapPage.feeDiscountRegistryBanner.test.tsx(after fix); util matrix infeeDiscountRegistryWarning.test.tsfee_discount_registry_ok: false→ banner without per-trader errorsrole=status,alert-warning, copy matchesFEE_DISCOUNT_REGISTRY_WARNING_TEXT)SwapPage.test.tsx"Hold CL8Y CTA for unregistered wallet…"SwapPage.test.tsx+ banner test "Swap stays enabled"feeDiscountRegistryWarning.test.ts10/10; banner suites 7/7 after testid fixmake setup-cloud-localterra --fresh --skip-build; dev wallet tier 1; Playwright browser on:5173feeDiscountRegistryWarning.test.tsstable copy assertionCommands run:
Follow-ups
SwapPage.feeDiscountRegistryBanner.test.tsxintoSwapPage.test.tsxnow that both cover the same matrix with the same test id.changed the description
changed the description
Security review — MR !899
Commit reviewed:
17453e7a49135a24b5a5b1527b98d99eddbd3961Scope:
frontend-dapp/src/pages/SwapPage.feeDiscountRegistryBanner.test.tsx— fourdata-testidselector updates (fee-discount-registry-warning→swap-fee-discount-registry-warning) to match the existing production attribute inSwapPage.tsx(line 1005). No runtime, swap, indexer, or banner-copy logic changes in this diff.Method: Full MR diff review; traced all four changed lines to test-only
findByTestId/queryByTestIdcalls; confirmed production banner still renders staticFEE_DISCOUNT_REGISTRY_WARNING_TEXTwith no attacker-controlled interpolation. Checked prior MR notes — no prior security-review threads to re-validate.Outcome:
FINDINGS: 0medium+Security review: no medium+ findings on this diff.
Inline threads: none (no findings to anchor).
Safe to merge from an application-security perspective for the changed surface.
mentioned in commit
3ece932132