Skip to content

Commit

Permalink
Test: display something before the low-cost screensaver activates
Browse files Browse the repository at this point in the history
The newly added snapshot is not correct because the problem has not yet been fixed.
  • Loading branch information
spalmer25 committed Apr 11, 2024
1 parent 886946c commit 6feb16f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 27 additions & 1 deletion test/test_instructions.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,35 @@ def test_automatic_low_cost_screensaver(firmware: Firmware,

time.sleep(30)

# Low-cost screensaver desactivate after button push
# Low-cost screensaver deactivate after button push
tezos_navigator.assert_screen("home_screen")

attestation = build_attestation(
op_level=2,
op_round=0,
chain_id=DEFAULT_CHAIN_ID
)

client.sign_message(account, attestation)

time.sleep(5)

# Low-cost screensaver activate after 20s after signing
tezos_navigator.assert_screen("home_screen")

def delayed_authorize_navigate(**kwargs):
time.sleep(30)

# Low-cost screensaver deactivate after something is displayed.
tezos_navigator.assert_screen("first_authorize_screen")

tezos_navigator.accept_key_navigate(**kwargs)

tezos_navigator.authorize_baking(
account,
navigate=delayed_authorize_navigate
)


def test_version(client: TezosClient) -> None:
"""Test the VERSION instruction."""
Expand Down

0 comments on commit 6feb16f

Please sign in to comment.