From 8c9f5ebbca65da28744dea6beaf2b979b0bd4ba6 Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Thu, 6 Jun 2024 01:24:10 +0200 Subject: [PATCH] tests(core): fix T3T1 default flow --- python/src/trezorlib/debuglink.py | 2 +- tests/input_flows.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/python/src/trezorlib/debuglink.py b/python/src/trezorlib/debuglink.py index a0d23bc8f6..96d0b148df 100644 --- a/python/src/trezorlib/debuglink.py +++ b/python/src/trezorlib/debuglink.py @@ -827,7 +827,7 @@ class DebugUI: layout = self.debuglink.read_layout() if "PromptScreen" in layout.all_components(): self.debuglink.press_yes() - elif "swipe up" in layout.footer().lower(): + elif "SwipeContent" in layout.all_components(): self.debuglink.swipe_up() else: self.debuglink.press_yes() diff --git a/tests/input_flows.py b/tests/input_flows.py index 73c2832cb4..296e26a23b 100644 --- a/tests/input_flows.py +++ b/tests/input_flows.py @@ -2286,7 +2286,9 @@ class InputFlowConfirmAllWarnings(InputFlowBase): self.debug.click(buttons.CORNER_BUTTON, wait=True) self.debug.synchronize_at("VerticalMenu") self.debug.click(buttons.VERTICAL_MENU[1]) - elif "swipe up" in layout.footer().lower(): + elif "PromptScreen" in layout.all_components(): + self.debug.press_yes() + elif "SwipeContent" in layout.all_components(): self.debug.swipe_up() else: self.debug.press_yes()