Skip to content

Commit

Permalink
test(core): T3T1 ShowDeviceTutorial
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
mmilata committed Jul 8, 2024
1 parent 0c1133d commit 74cf7bb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/input_flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -2293,3 +2293,30 @@ def input_flow_t3t1(self) -> BRGeneratorType:
else:
self.debug.press_yes()
br = yield


class InputFlowTutorial(InputFlowBase):
def __init__(self, client: Client, cancel: bool = False):
super().__init__(client)
self.cancel = cancel

def input_flow_t3t1(self) -> BRGeneratorType:
yield
self.debug.click(buttons.TAP_TO_CONFIRM, wait=True)
self.debug.swipe_up(wait=True)
self.debug.swipe_up(wait=True)
if self.cancel:
self.debug.click(buttons.CORNER_BUTTON, wait=True)
self.debug.click(buttons.VERTICAL_MENU[0], wait=True)
self.debug.click(buttons.CORNER_BUTTON, wait=True)
self.debug.click(buttons.VERTICAL_MENU[1], wait=True)
self.debug.swipe_up(wait=True)
self.debug.swipe_up(wait=True)
self.debug.click(buttons.CORNER_BUTTON, wait=True)
self.debug.click(buttons.VERTICAL_MENU[2], wait=True)
self.debug.click(buttons.TAP_TO_CONFIRM, wait=True)
self.debug.swipe_up(wait=True)
else:
self.debug.swipe_up(wait=True)
self.debug.click(buttons.TAP_TO_CONFIRM, wait=True)
self.debug.swipe_up(wait=True)
2 changes: 2 additions & 0 deletions tests/ui_tests/fixtures.json
Original file line number Diff line number Diff line change
Expand Up @@ -19523,6 +19523,8 @@
"T3T1_en_test_msg_sd_protect.py::test_enable_disable": "d5e2fa75fa82852c35cb1c603a225cbc2bb42e4f13fbbf97476c920962597c4f",
"T3T1_en_test_msg_sd_protect.py::test_refresh": "dc1171b4b1fca407dc1692e624c16c48421ae42ef665b58394fee0896a79245a",
"T3T1_en_test_msg_sd_protect.py::test_wipe": "4f5c7c7ca1e2c8bc0f19886b9dc3a9c75dd76fc918b54b7d54fe0584072bb162",
"T3T1_en_test_msg_show_device_tutorial.py::test_tutorial_t3t1[False]": "2f39eedba0ef8010f232b77606c453e06e63c74a54f08117a60066d64412e589",
"T3T1_en_test_msg_show_device_tutorial.py::test_tutorial_t3t1[True]": "8908a0d44786f8d60477d04f54dbdb28a059358bc04f093daf4129c89e6b529b",
"T3T1_en_test_msg_wipedevice.py::test_autolock_not_retained": "96822ce9894896bc7c04223bf226037cc6786ebdec84c8749f8420ad48954a5b",
"T3T1_en_test_msg_wipedevice.py::test_wipe_device": "901237acb1169340674c16b654913676fbe8bde1d5917c8ea8f640a331d79387",
"T3T1_en_test_passphrase_slip39_advanced.py::test_128bit_passphrase": "6def6c3c6ecd03c7345cce0ab75f71e9e76b45e047f1026b8149f6676048d748",
Expand Down

0 comments on commit 74cf7bb

Please sign in to comment.