1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 06:18:07 +00:00

chore(tests): update upgrade tests

This commit is contained in:
grdddj 2023-05-04 14:18:24 +02:00 committed by Martin Milata
parent 0dd3098aeb
commit facbd6b1cf

View File

@ -317,7 +317,7 @@ def test_upgrade_shamir_recovery(gen: str, tag: Optional[str]):
layout = recovery.enter_share( layout = recovery.enter_share(
debug, MNEMONIC_SLIP39_BASIC_20_3of6[0], legacy_ui=legacy_ui debug, MNEMONIC_SLIP39_BASIC_20_3of6[0], legacy_ui=legacy_ui
) )
assert "2 more shares" in layout.text assert "2 more shares" in layout.text_content()
device_id = emu.client.features.device_id device_id = emu.client.features.device_id
storage = emu.get_storage() storage = emu.get_storage()
@ -331,11 +331,11 @@ def test_upgrade_shamir_recovery(gen: str, tag: Optional[str]):
# second share # second share
layout = recovery.enter_share(debug, MNEMONIC_SLIP39_BASIC_20_3of6[2]) layout = recovery.enter_share(debug, MNEMONIC_SLIP39_BASIC_20_3of6[2])
assert "1 more share" in layout.text assert "1 more share" in layout.text_content()
# last one # last one
layout = recovery.enter_share(debug, MNEMONIC_SLIP39_BASIC_20_3of6[1]) layout = recovery.enter_share(debug, MNEMONIC_SLIP39_BASIC_20_3of6[1])
assert "You have successfully" in layout.text assert "You have finished recovering your wallet" in layout.text_content()
# Check the result # Check the result
state = debug.state() state = debug.state()