Skip to content

Use events in ledger tests#2017

Merged
OBorce merged 2 commits intomasterfrom
fix/ledger-test-events
Mar 3, 2026
Merged

Use events in ledger tests#2017
OBorce merged 2 commits intomasterfrom
fix/ledger-test-events

Conversation

@OBorce
Copy link
Contributor

@OBorce OBorce commented Feb 26, 2026

No description provided.

sleep(Duration::from_millis(100)).await;
let _ = handle.button(Button::Both, ButtonAction::PressAndRelease).await;
if let Ok(events) = handle.current_screen_events().await {
let to_sign = events.iter().any(|e| e.contains("Sign "));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the extra space after "Sign" intended?

Btw, it this coming from the actual text on the screen or is it something else?

In any case, it's better to leave a comment explaining what strings you expect here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is from the screen events, I changed it to check for "Sign message" and "Sign transaction"

@OBorce OBorce merged commit 75ad3d3 into master Mar 3, 2026
20 checks passed
@OBorce OBorce deleted the fix/ledger-test-events branch March 3, 2026 12:49
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.

2 participants