1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-21 20:12:02 +00:00
This commit is contained in:
Martin Milata 2025-02-13 15:52:37 +01:00
parent a42b5db520
commit dee0a96a56
3 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,7 @@ def prepare_passphrase_dialogue(
) -> Generator["DebugLink", None, None]:
debug = device_handler.debuglink()
device_handler.run_with_session(get_test_address) # type: ignore
print(debug.read_layout().main_component())
assert debug.read_layout().main_component() == "PassphraseKeyboard"
# Resetting the category as it could have been changed by previous tests

View File

@ -92,6 +92,7 @@ def prepare_passphrase_dialogue(
) -> Generator["DebugLink", None, None]:
debug = device_handler.debuglink()
device_handler.run_with_session(get_test_address) # type: ignore
print(debug.read_layout().main_component())
layout = debug.read_layout()
assert "PassphraseKeyboard" in layout.all_components()
assert layout.passphrase() == ""

View File

@ -98,6 +98,7 @@ def prepare_passphrase_dialogue(
) -> Generator["DebugLink", None, None]:
debug = device_handler.debuglink()
device_handler.run_with_session(get_test_address) # type: ignore
print(debug.read_layout().main_component()) # TODO
assert debug.read_layout().main_component() == "PassphraseKeyboard"
# Resetting the category as it could have been changed by previous tests