mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-27 06:42:02 +00:00
fix(tests): remove useless hold-to-confirm for delizia
when animations are disabled, hold-to-confirm has zero timeout
This commit is contained in:
parent
b015eac9f7
commit
5c7986d9b7
@ -117,7 +117,7 @@ def read_words(debug: "DebugLink", do_htc: bool = True) -> list[str]:
|
|||||||
if debug.layout_type is LayoutType.Bolt:
|
if debug.layout_type is LayoutType.Bolt:
|
||||||
debug.click(buttons.OK, hold_ms=1500)
|
debug.click(buttons.OK, hold_ms=1500)
|
||||||
elif debug.layout_type is LayoutType.Delizia:
|
elif debug.layout_type is LayoutType.Delizia:
|
||||||
debug.click(buttons.TAP_TO_CONFIRM, hold_ms=1500)
|
debug.click(buttons.TAP_TO_CONFIRM)
|
||||||
elif debug.layout_type is LayoutType.Caesar:
|
elif debug.layout_type is LayoutType.Caesar:
|
||||||
debug.press_right(hold_ms=1200)
|
debug.press_right(hold_ms=1200)
|
||||||
else:
|
else:
|
||||||
|
@ -47,7 +47,7 @@ def test_tutorial_ignore_menu(device_handler: "BackgroundDeviceHandler"):
|
|||||||
assert debug.read_layout().title() == TR.tutorial__title_handy_menu
|
assert debug.read_layout().title() == TR.tutorial__title_handy_menu
|
||||||
debug.swipe_up()
|
debug.swipe_up()
|
||||||
assert debug.read_layout().title() == TR.tutorial__title_hold
|
assert debug.read_layout().title() == TR.tutorial__title_hold
|
||||||
debug.click(buttons.TAP_TO_CONFIRM, hold_ms=1000)
|
debug.click(buttons.TAP_TO_CONFIRM)
|
||||||
assert debug.read_layout().title() == TR.tutorial__title_well_done
|
assert debug.read_layout().title() == TR.tutorial__title_well_done
|
||||||
debug.swipe_up()
|
debug.swipe_up()
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ def test_tutorial_menu_open_close(device_handler: "BackgroundDeviceHandler"):
|
|||||||
|
|
||||||
debug.swipe_up()
|
debug.swipe_up()
|
||||||
assert debug.read_layout().title() == TR.tutorial__title_hold
|
assert debug.read_layout().title() == TR.tutorial__title_hold
|
||||||
debug.click(buttons.TAP_TO_CONFIRM, hold_ms=1000)
|
debug.click(buttons.TAP_TO_CONFIRM)
|
||||||
assert debug.read_layout().title() == TR.tutorial__title_well_done
|
assert debug.read_layout().title() == TR.tutorial__title_well_done
|
||||||
debug.swipe_up()
|
debug.swipe_up()
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ def test_tutorial_menu_exit(device_handler: "BackgroundDeviceHandler"):
|
|||||||
assert TR.tutorial__did_you_know in debug.read_layout().text_content()
|
assert TR.tutorial__did_you_know in debug.read_layout().text_content()
|
||||||
debug.click(buttons.VERTICAL_MENU[2])
|
debug.click(buttons.VERTICAL_MENU[2])
|
||||||
assert TR.instructions__hold_to_exit_tutorial in debug.read_layout().footer()
|
assert TR.instructions__hold_to_exit_tutorial in debug.read_layout().footer()
|
||||||
debug.click(buttons.TAP_TO_CONFIRM, hold_ms=1000)
|
debug.click(buttons.TAP_TO_CONFIRM)
|
||||||
assert debug.read_layout().title() == TR.tutorial__title_well_done
|
assert debug.read_layout().title() == TR.tutorial__title_well_done
|
||||||
debug.swipe_up()
|
debug.swipe_up()
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ def test_tutorial_menu_repeat(device_handler: "BackgroundDeviceHandler"):
|
|||||||
assert debug.read_layout().title() == TR.tutorial__title_handy_menu
|
assert debug.read_layout().title() == TR.tutorial__title_handy_menu
|
||||||
debug.swipe_up()
|
debug.swipe_up()
|
||||||
assert debug.read_layout().title() == TR.tutorial__title_hold
|
assert debug.read_layout().title() == TR.tutorial__title_hold
|
||||||
debug.click(buttons.TAP_TO_CONFIRM, hold_ms=1000)
|
debug.click(buttons.TAP_TO_CONFIRM)
|
||||||
assert debug.read_layout().title() == TR.tutorial__title_well_done
|
assert debug.read_layout().title() == TR.tutorial__title_well_done
|
||||||
debug.swipe_up()
|
debug.swipe_up()
|
||||||
|
|
||||||
@ -159,7 +159,7 @@ def test_tutorial_menu_funfact(device_handler: "BackgroundDeviceHandler"):
|
|||||||
|
|
||||||
debug.swipe_up()
|
debug.swipe_up()
|
||||||
assert debug.read_layout().title() == TR.tutorial__title_hold
|
assert debug.read_layout().title() == TR.tutorial__title_hold
|
||||||
debug.click(buttons.TAP_TO_CONFIRM, hold_ms=1000)
|
debug.click(buttons.TAP_TO_CONFIRM)
|
||||||
assert debug.read_layout().title() == TR.tutorial__title_well_done
|
assert debug.read_layout().title() == TR.tutorial__title_well_done
|
||||||
debug.swipe_up()
|
debug.swipe_up()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user