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

fix(tests): fix unstable autolock click test

[no changelog]
This commit is contained in:
grdddj 2023-07-12 13:59:16 +02:00 committed by Jiří Musil
parent 52c69de138
commit d6c6cacdd2

View File

@ -343,7 +343,7 @@ def test_dryrun_enter_word_slowly(device_handler: "BackgroundDeviceHandler"):
layout = debug.press_right(wait=True) layout = debug.press_right(wait=True)
assert "Slip39Entry" in layout.all_components() assert "Slip39Entry" in layout.all_components()
# type the word `ACADEMIC` slowly (A, C, and the whole word confirmation) # pressing middle button three times
for _ in range(3): for _ in range(3):
time.sleep(9) time.sleep(9)
debug.press_middle() debug.press_middle()
@ -351,7 +351,8 @@ def test_dryrun_enter_word_slowly(device_handler: "BackgroundDeviceHandler"):
# should not have locked, even though we took 9 seconds to type each letter # should not have locked, even though we took 9 seconds to type each letter
assert "Slip39Entry" in layout.all_components() assert "Slip39Entry" in layout.all_components()
device_handler.kill_task() with pytest.raises(exceptions.Cancelled):
device_handler.result()
@pytest.mark.setup_client(pin=PIN4) @pytest.mark.setup_client(pin=PIN4)