1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-01 10:20:59 +00:00

fixup! chore(core): show the last passphrase character for a while

This commit is contained in:
Lukas Bielesch 2024-12-03 07:46:38 +01:00
parent e674efc501
commit ba52fdf421
3 changed files with 9 additions and 9 deletions

View File

@ -343,10 +343,10 @@ def test_cycle_through_last_character(
def test_last_char_timeout(device_handler: "BackgroundDeviceHandler"): def test_last_char_timeout(device_handler: "BackgroundDeviceHandler"):
with prepare_passphrase_dialogue(device_handler) as debug: with prepare_passphrase_dialogue(device_handler) as debug:
for character in CommonPass.MULTI_CATEGORY: for character in CommonPass.MULTI_CATEGORY:
# insert a digit # insert a character
input_passphrase(debug, character) input_passphrase(debug, character)
# wait until the last digit is hidden # wait until the last character is hidden
time.sleep(DELAY_S) time.sleep(DELAY_S)
# show the entire PIN # show the entire passphrase
show_passphrase(debug) show_passphrase(debug)
enter_passphrase(debug) enter_passphrase(debug)

View File

@ -274,10 +274,10 @@ def test_passphrase_loop_all_characters(device_handler: "BackgroundDeviceHandler
def test_last_char_timeout(device_handler: "BackgroundDeviceHandler"): def test_last_char_timeout(device_handler: "BackgroundDeviceHandler"):
with prepare_passphrase_dialogue(device_handler) as debug: with prepare_passphrase_dialogue(device_handler) as debug:
for character in CommonPass.MULTI_CATEGORY: for character in CommonPass.MULTI_CATEGORY:
# insert a digit # insert a character
input_passphrase(debug, character) input_passphrase(debug, character)
# wait until the last digit is hidden # wait until the last character is hidden
time.sleep(DELAY_S) time.sleep(DELAY_S)
# show the entire PIN # show the entire passphrase
show_passphrase(debug) show_passphrase(debug)
enter_passphrase(debug) enter_passphrase(debug)

View File

@ -310,10 +310,10 @@ def test_cycle_through_last_character(
def test_last_char_timeout(device_handler: "BackgroundDeviceHandler"): def test_last_char_timeout(device_handler: "BackgroundDeviceHandler"):
with prepare_passphrase_dialogue(device_handler) as debug: with prepare_passphrase_dialogue(device_handler) as debug:
for character in CommonPass.MULTI_CATEGORY: for character in CommonPass.MULTI_CATEGORY:
# insert a digit # insert a character
input_passphrase(debug, character) input_passphrase(debug, character)
# wait until the last digit is hidden # wait until the last character is hidden
time.sleep(DELAY_S) time.sleep(DELAY_S)
# show the entire PIN # show the entire passphrase
show_passphrase(debug) show_passphrase(debug)
enter_passphrase(debug) enter_passphrase(debug)