1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 12:28:09 +00:00

tests(core): fix T3T1 default flow

This commit is contained in:
Martin Milata 2024-06-06 01:24:10 +02:00 committed by matejcik
parent cca066c476
commit 8c9f5ebbca
2 changed files with 4 additions and 2 deletions

View File

@ -827,7 +827,7 @@ class DebugUI:
layout = self.debuglink.read_layout() layout = self.debuglink.read_layout()
if "PromptScreen" in layout.all_components(): if "PromptScreen" in layout.all_components():
self.debuglink.press_yes() self.debuglink.press_yes()
elif "swipe up" in layout.footer().lower(): elif "SwipeContent" in layout.all_components():
self.debuglink.swipe_up() self.debuglink.swipe_up()
else: else:
self.debuglink.press_yes() self.debuglink.press_yes()

View File

@ -2286,7 +2286,9 @@ class InputFlowConfirmAllWarnings(InputFlowBase):
self.debug.click(buttons.CORNER_BUTTON, wait=True) self.debug.click(buttons.CORNER_BUTTON, wait=True)
self.debug.synchronize_at("VerticalMenu") self.debug.synchronize_at("VerticalMenu")
self.debug.click(buttons.VERTICAL_MENU[1]) 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() self.debug.swipe_up()
else: else:
self.debug.press_yes() self.debug.press_yes()