diff --git a/tests/ui_tests/__init__.py b/tests/ui_tests/__init__.py index 8f2ad3dc10..b39d3756d5 100644 --- a/tests/ui_tests/__init__.py +++ b/tests/ui_tests/__init__.py @@ -9,6 +9,7 @@ from _pytest.nodes import Node from _pytest.outcomes import Failed from trezorlib.debuglink import TrezorClientDebugLink as Client +from trezorlib.client import ProtocolVersion from . import common from .common import SCREENS_DIR, UI_TESTS_DIR, TestCase, TestResult @@ -61,7 +62,8 @@ def screen_recording( yield finally: 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 # and redraw the homescreen. Otherwise there's a race condition between that # and stopping recording.