Skip to content

Commit

Permalink
fixup! chore(core): show the last passphrase character for a while
Browse files Browse the repository at this point in the history
  • Loading branch information
bieleluk committed Dec 3, 2024
1 parent e674efc commit ba52fdf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions tests/click_tests/test_passphrase_mercury.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,10 @@ def test_cycle_through_last_character(
def test_last_char_timeout(device_handler: "BackgroundDeviceHandler"):
with prepare_passphrase_dialogue(device_handler) as debug:
for character in CommonPass.MULTI_CATEGORY:
# insert a digit
# insert a character
input_passphrase(debug, character)
# wait until the last digit is hidden
# wait until the last character is hidden
time.sleep(DELAY_S)
# show the entire PIN
# show the entire passphrase
show_passphrase(debug)
enter_passphrase(debug)
6 changes: 3 additions & 3 deletions tests/click_tests/test_passphrase_tr.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ def test_passphrase_loop_all_characters(device_handler: "BackgroundDeviceHandler
def test_last_char_timeout(device_handler: "BackgroundDeviceHandler"):
with prepare_passphrase_dialogue(device_handler) as debug:
for character in CommonPass.MULTI_CATEGORY:
# insert a digit
# insert a character
input_passphrase(debug, character)
# wait until the last digit is hidden
# wait until the last character is hidden
time.sleep(DELAY_S)
# show the entire PIN
# show the entire passphrase
show_passphrase(debug)
enter_passphrase(debug)
6 changes: 3 additions & 3 deletions tests/click_tests/test_passphrase_tt.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,10 @@ def test_cycle_through_last_character(
def test_last_char_timeout(device_handler: "BackgroundDeviceHandler"):
with prepare_passphrase_dialogue(device_handler) as debug:
for character in CommonPass.MULTI_CATEGORY:
# insert a digit
# insert a character
input_passphrase(debug, character)
# wait until the last digit is hidden
# wait until the last character is hidden
time.sleep(DELAY_S)
# show the entire PIN
# show the entire passphrase
show_passphrase(debug)
enter_passphrase(debug)

0 comments on commit ba52fdf

Please sign in to comment.