mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-12 07:32:48 +00:00
test: update ui tests
[no changelog]
This commit is contained in:
parent
c856d5c664
commit
dbc642b01b
@ -8,6 +8,7 @@ import pytest
|
|||||||
from _pytest.nodes import Node
|
from _pytest.nodes import Node
|
||||||
from _pytest.outcomes import Failed
|
from _pytest.outcomes import Failed
|
||||||
|
|
||||||
|
from trezorlib.client import ProtocolVersion
|
||||||
from trezorlib.debuglink import TrezorClientDebugLink as Client
|
from trezorlib.debuglink import TrezorClientDebugLink as Client
|
||||||
|
|
||||||
from . import common
|
from . import common
|
||||||
@ -56,11 +57,14 @@ def screen_recording(
|
|||||||
yield
|
yield
|
||||||
finally:
|
finally:
|
||||||
client.ensure_open()
|
client.ensure_open()
|
||||||
client.sync_responses()
|
if client.protocol_version == ProtocolVersion.PROTOCOL_V1:
|
||||||
|
client.sync_responses()
|
||||||
# Wait for response to Initialize, which gives the emulator time to catch up
|
# Wait for response to Initialize, which gives the emulator time to catch up
|
||||||
# and redraw the homescreen. Otherwise there's a race condition between that
|
# and redraw the homescreen. Otherwise there's a race condition between that
|
||||||
# and stopping recording.
|
# and stopping recording.
|
||||||
client.init_device()
|
|
||||||
|
# Instead of client.init_device() we create a new management session
|
||||||
|
client.get_seedless_session()
|
||||||
client.debug.stop_recording()
|
client.debug.stop_recording()
|
||||||
|
|
||||||
result = testcase.build_result(request)
|
result = testcase.build_result(request)
|
||||||
|
Loading…
Reference in New Issue
Block a user