1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

fix(tests): UI diff mercury timeout status screen

[no changelog]
This commit is contained in:
obrusvit 2024-10-03 16:15:12 +02:00
parent 4d4ab93197
commit 32efef07e0
2 changed files with 7 additions and 5 deletions

View File

@ -149,7 +149,7 @@ impl StatusScreen {
icon: Icon,
icon_color: Color,
circle_color: Color,
dismiss_style: DismissType,
dismiss_type: DismissType,
msg: TString<'static>,
) -> Self {
Self {
@ -157,7 +157,7 @@ impl StatusScreen {
icon,
icon_color,
circle_color,
dismiss_type: dismiss_style,
dismiss_type,
anim: StatusAnimation::default(),
msg: Label::new(msg, Alignment::Start, theme::TEXT_NORMAL).vertically_centered(),
}
@ -174,11 +174,12 @@ impl StatusScreen {
}
pub fn new_success_timeout(msg: TString<'static>) -> Self {
let timeout_ms = if !animation_disabled() { TIMEOUT_MS } else { 0 };
Self::new(
theme::ICON_SIMPLE_CHECKMARK30,
theme::GREEN_LIME,
theme::GREEN_LIGHT,
DismissType::Timeout(Timeout::new(TIMEOUT_MS)),
DismissType::Timeout(Timeout::new(timeout_ms)),
msg,
)
}
@ -194,11 +195,12 @@ impl StatusScreen {
}
pub fn new_neutral_timeout(msg: TString<'static>) -> Self {
let timeout_ms = if !animation_disabled() { TIMEOUT_MS } else { 0 };
Self::new(
theme::ICON_SIMPLE_CHECKMARK30,
theme::GREY_EXTRA_LIGHT,
theme::GREY_DARK,
DismissType::Timeout(Timeout::new(TIMEOUT_MS)),
DismissType::Timeout(Timeout::new(timeout_ms)),
msg,
)
}

View File

@ -663,7 +663,7 @@ class InputFlowShowXpubQRCode(InputFlowBase):
layout = self.debug.swipe_up()
self.debug.synchronize_at("PromptScreen")
# tap to confirm
self.debug.press_yes()
self.debug.click(buttons.TAP_TO_CONFIRM)
class InputFlowPaymentRequestDetails(InputFlowBase):