Skip to content

Use events in ledger tests#2017

Open
OBorce wants to merge 1 commit intomasterfrom
fix/ledger-test-events
Open

Use events in ledger tests#2017
OBorce wants to merge 1 commit 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.

pub async fn current_screen_events(&self) -> anyhow::Result<Vec<String>> {
log::debug!("Fetching current screen events");

let r = Client::new()
Copy link
Contributor

Choose a reason for hiding this comment

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

rename "r" to "response"?

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