Skip to content

Commit

Permalink
fix: stax tests
Browse files Browse the repository at this point in the history
  • Loading branch information
krigga committed Jul 25, 2024
1 parent aebe61d commit ceddd5a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 21 deletions.
24 changes: 8 additions & 16 deletions tests/test_sign_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,9 @@ def test_sign_tx_no_payload(firmware, backend, navigator, test_name):
ROOT_SCREENSHOT_PATH,
test_name)
else:
navigator.navigate_and_compare(ROOT_SCREENSHOT_PATH,
test_name,
[
NavInsID.SWIPE_CENTER_TO_RIGHT,
])
navigator.navigate([
NavInsID.SWIPE_CENTER_TO_RIGHT,
])
navigator.navigate_until_text_and_compare(NavInsID.USE_CASE_VIEW_DETAILS_NEXT,
[NavInsID.USE_CASE_REVIEW_CONFIRM,
NavInsID.USE_CASE_STATUS_DISMISS],
Expand Down Expand Up @@ -181,9 +179,7 @@ def test_sign_tx_with_payload(firmware, backend, navigator, test_name):
]
if i == 0:
instructions += [NavInsID.SWIPE_CENTER_TO_RIGHT]
navigator.navigate_and_compare(ROOT_SCREENSHOT_PATH,
test_name + f"/part{i}",
instructions)
navigator.navigate(instructions)
navigator.navigate_until_text_and_compare(NavInsID.USE_CASE_VIEW_DETAILS_NEXT,
[NavInsID.USE_CASE_REVIEW_CONFIRM,
NavInsID.USE_CASE_STATUS_DISMISS],
Expand Down Expand Up @@ -265,9 +261,7 @@ def test_sign_tx_subwallet_id(firmware, backend, navigator, test_name):
]
if i == 1:
instructions += [NavInsID.SWIPE_CENTER_TO_RIGHT]
navigator.navigate_and_compare(ROOT_SCREENSHOT_PATH,
test_name + f"/part{i}",
instructions)
navigator.navigate(instructions)
navigator.navigate_until_text_and_compare(NavInsID.USE_CASE_VIEW_DETAILS_NEXT,
[NavInsID.USE_CASE_REVIEW_CONFIRM,
NavInsID.USE_CASE_STATUS_DISMISS],
Expand Down Expand Up @@ -419,11 +413,9 @@ def test_sign_tx_clear_jetton(firmware, backend, navigator, test_name):
ROOT_SCREENSHOT_PATH,
test_name + f"/part{i}")
else:
navigator.navigate_and_compare(ROOT_SCREENSHOT_PATH,
test_name + f"/part{i}",
[
NavInsID.SWIPE_CENTER_TO_RIGHT,
])
navigator.navigate([
NavInsID.SWIPE_CENTER_TO_RIGHT,
])
navigator.navigate_until_text_and_compare(NavInsID.USE_CASE_VIEW_DETAILS_NEXT,
[NavInsID.USE_CASE_REVIEW_CONFIRM,
NavInsID.USE_CASE_STATUS_DISMISS],
Expand Down
8 changes: 3 additions & 5 deletions tests/test_sign_custom_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,9 @@ def test_sign_data(firmware, backend, navigator, test_name):
ROOT_SCREENSHOT_PATH,
test_name + f"/part{i}")
else:
navigator.navigate_and_compare(ROOT_SCREENSHOT_PATH,
test_name + f"/part{i}",
[
NavInsID.SWIPE_CENTER_TO_RIGHT,
])
navigator.navigate([
NavInsID.SWIPE_CENTER_TO_RIGHT,
])
navigator.navigate_until_text_and_compare(NavInsID.USE_CASE_VIEW_DETAILS_NEXT,
[NavInsID.USE_CASE_REVIEW_CONFIRM,
NavInsID.USE_CASE_STATUS_DISMISS],
Expand Down

0 comments on commit ceddd5a

Please sign in to comment.