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

fix(tests): add forgotten assert

This commit is contained in:
matejcik 2023-03-21 10:45:06 +01:00 committed by matejcik
parent 80af1c552e
commit 0e9aa7c5dc

View File

@ -23,7 +23,7 @@ def enter_word(
def confirm_recovery(debug: "DebugLink", legacy_ui: bool = False) -> None: def confirm_recovery(debug: "DebugLink", legacy_ui: bool = False) -> None:
layout = debug.wait_layout() layout = debug.wait_layout()
if legacy_ui: if legacy_ui:
layout.text.startswith("Recovery mode") assert layout.text.startswith("Recovery mode")
else: else:
assert layout.get_title().startswith("WALLET RECOVERY") assert layout.get_title().startswith("WALLET RECOVERY")
debug.click(buttons.OK, wait=True) debug.click(buttons.OK, wait=True)