Skip to content

Commit

Permalink
Merge pull request #26 from LedgerHQ/cev/BC2A-1150_FAT-porting-3
Browse files Browse the repository at this point in the history
BC2A-115:  FAT porting 3
  • Loading branch information
cedelavergne-ledger authored Oct 25, 2023
2 parents 5e135da + d63e9a4 commit 431495b
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 5 deletions.
Binary file modified tests/snapshots/stax/test_get_slot_refused/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/stax/test_get_slot_refused/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/stax/test_get_slot_refused/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/stax/test_get_slot_refused/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/stax/test_transaction_refused/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/stax/test_transaction_refused/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/stax/test_transaction_refused/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/stax/test_transaction_refused/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 2 additions & 5 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ def util_navigate(

assert text
valid_instr = []
screen_change: bool = True

if firmware.device.startswith("nano"):
text = text.split("_")[0]
Expand All @@ -160,9 +159,8 @@ def util_navigate(

elif text.startswith("REJECT"):
if text in ("REJECT_SIGN", "REJECT_SLOT"):
text = "Reject transaction?"
text = r"Reject transaction\?"
valid_instr.append(NavInsID.USE_CASE_CHOICE_CONFIRM)
screen_change = False
else:
text = "Cancel"
valid_instr.append(NavInsID.USE_CASE_CHOICE_REJECT)
Expand All @@ -178,5 +176,4 @@ def util_navigate(
text,
ROOT_SCREENSHOT_PATH,
test_name,
timeout,
screen_change_before_first_instruction=screen_change)
timeout)

0 comments on commit 431495b

Please sign in to comment.