1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

tests: fix recovery device tests also in bip39 backup

This commit is contained in:
Tomas Susanka 2019-06-26 11:57:59 +02:00
parent b4d0dc8da4
commit c8b9beaba2

View File

@ -66,6 +66,11 @@ class TestMsgRecoverydeviceT2(TrezorTest):
self.client.debug.input("654")
ret = self.client.call_raw(proto.ButtonAck())
# Confirm success
assert isinstance(ret, proto.ButtonRequest)
self.client.debug.press_yes()
ret = self.client.call_raw(proto.ButtonAck())
# Workflow succesfully ended
assert ret == proto.Success(message="Device recovered")
@ -107,6 +112,11 @@ class TestMsgRecoverydeviceT2(TrezorTest):
self.client.debug.input(word)
ret = self.client.transport.read()
# Confirm success
assert isinstance(ret, proto.ButtonRequest)
self.client.debug.press_yes()
ret = self.client.call_raw(proto.ButtonAck())
# Workflow succesfully ended
assert ret == proto.Success(message="Device recovered")