Skip to content

Commit

Permalink
Merge pull request #154 from LedgerHQ/tdj/update_tests
Browse files Browse the repository at this point in the history
Update tests after switch to api level 21
  • Loading branch information
tdejoigny-ledger authored Jul 11, 2024
2 parents 075f81e + 65cc8c2 commit 87e1767
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 2 deletions.
Binary file modified tests/snapshots/stax/test_swap_exact_eth_for_token/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_swap_exact_eth_for_token/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_swap_exact_eth_for_token/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_swap_exact_eth_for_token/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_swap_exact_eth_for_token/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests/test_swap.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ def test_swap_exact_eth_for_token(backend, firmware, navigator, test_name, walle
# send the transaction
with client.sign(DERIVATION_PATH, tx_params):
# Validate the on-screen request by performing the navigation appropriate for this device
if firmware.device.startswith("nano"):
if firmware.is_nano:
navigator.navigate_until_text_and_compare(NavInsID.RIGHT_CLICK,
[NavInsID.BOTH_CLICK],
"Accept",
ROOT_SCREENSHOT_PATH,
test_name)
else:
navigator.navigate_until_text_and_compare(NavInsID.USE_CASE_REVIEW_TAP,
navigator.navigate_until_text_and_compare(NavInsID.SWIPE_CENTER_TO_LEFT,
[NavInsID.USE_CASE_REVIEW_CONFIRM,
NavInsID.USE_CASE_STATUS_DISMISS],
"Hold to sign",
Expand Down

0 comments on commit 87e1767

Please sign in to comment.