Skip to content

test(frontend): cover Solana WC unreviewed warning#13142

Draft
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/missing-test-coverage-570f
Draft

test(frontend): cover Solana WC unreviewed warning#13142
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/missing-test-coverage-570f

Conversation

@cursor

@cursor cursor Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Motivation

Recent Solana WalletConnect changes intentionally allow transactions with unreviewed instructions, but rely on the review UI to warn users that the decoded summary may be incomplete. That warning is the safety control that replaces outright rejection, so it should have regression coverage.

Changes

  • Added SolWalletConnectSignReview component coverage for the unreviewed branch.
  • Asserted the localized warning is rendered when unreviewed is true and absent by default.

Risky behavior now covered: users are warned before approving Solana WalletConnect transactions that contain instructions OISY cannot decode.

Test files added/updated: src/frontend/src/tests/sol/components/wallet-connect/SolWalletConnectSignReview.spec.ts.

Why this reduces regression risk: the mapper already proves the flag is produced; this verifies the user-facing warning is actually shown in the signing review, preserving the safety signal for incomplete transaction summaries.

Tests

  • PATH="$HOME/.nvm/versions/node/v24.17.0/bin:$PATH" npm run test -- src/frontend/src/tests/sol/components/wallet-connect/SolWalletConnectSignReview.spec.ts
  • PATH="$HOME/.nvm/versions/node/v24.17.0/bin:$PATH" npm run check:tests
Open in Web View Automation 

cursoragent and others added 2 commits June 18, 2026 10:03
Co-authored-by: Antonio Ventilii <AntonioVentilii@users.noreply.github.com>
Co-authored-by: Antonio Ventilii <AntonioVentilii@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant