Skip to content

✨ (cs-tester) [NO-ISSUE]: Detect and handle intermediate blind signing screens#1333

Draft
aussedatlo wants to merge 4 commits intodevelopfrom
feat/no-issue-gating-cs-tester
Draft

✨ (cs-tester) [NO-ISSUE]: Detect and handle intermediate blind signing screens#1333
aussedatlo wants to merge 4 commits intodevelopfrom
feat/no-issue-gating-cs-tester

Conversation

@aussedatlo
Copy link
Contributor

📝 Description

Add screen-aware navigation to the clear-signing tester's signing flow. The navigation loop now detects and correctly handles three intermediate screens that can appear before the transaction review fields:

  • "Safer way to sign" screen (blind signing enabled) — taps "Continue to blind signing" instead of accidentally hitting "Learn more"
  • "Blind signing ahead" screen (blind signing enabled) — taps "Accept risk and continue"
  • "Blind signing not enabled" screen (blind signing disabled) — detects the dead-end, rejects the transaction, and returns an error

Also tightens isBlindSigningWarning() detection to avoid false matches across these screens (the substring "blind signing" appears in all three).

Includes:

  • New gating screen test resource (ressources/gating/raw-gating-screen.json) with 11 identical transactions
  • New test:gating-screen npm script with --blind-signing-enabled --skip-origin-token
  • New gating-tests job in the ERC7730 nightly workflow (stax, nanox, flex)

❓ Context

  • JIRA or GitHub link: [NO-ISSUE]
  • Feature: Improve cs-tester resilience when intermediate blind signing screens appear during automated transaction signing

✅ Checklist

  • Covered by automatic tests — tested manually via Speculos; nightly CI job added for regression coverage
  • Changeset is provided
  • Documentation is up-to-date
  • Impact of the changes:
    • New screen detection methods in ScreenAnalyzer (isContinueToBlindSigningScreen, isBlindSigningBlocked)
    • New continueToBlindSigning() method in DeviceController interface and implementations
    • Modified navigation loop in SignTransactionStateHandler to handle intermediate screens
    • Tightened isBlindSigningWarning() to only match "blind signing ahead" (no longer matches "continue to blind signing")
    • New nightly CI job for gating screen tests

Made with Cursor

Add screen-aware navigation to the signing flow that detects and handles
three intermediate screens: "safer way to sign", "blind signing ahead",
and "blind signing not enabled". Includes gating screen test resource
and nightly CI job.

Made-with: Cursor
@vercel
Copy link

vercel bot commented Mar 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
device-sdk-ts-sample Ready Ready Preview, Comment Mar 3, 2026 10:21am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
doc-device-management-kit Ignored Ignored Mar 3, 2026 10:21am

Request Review

@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

Danger Check Results

Messages

Danger: All checks passed successfully! 🎉

Generated by 🚫 dangerJS against 59bfd47

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