diff --git a/tests/device_tests/test_language.py b/tests/device_tests/test_language.py index 7a13bd6cb7..205055008f 100644 --- a/tests/device_tests/test_language.py +++ b/tests/device_tests/test_language.py @@ -70,7 +70,7 @@ def _check_ping_screen_texts(client: Client, title: str, right_button: str) -> N yield layout = client.debug.wait_layout() assert layout.title().upper() == title.upper() - assert layout.button_contents()[-1] == right_button.upper() + assert layout.button_contents()[-1].upper() == right_button.upper() client.debug.press_yes() # TT does not have a right button text (but a green OK tick) diff --git a/tests/persistence_tests/test_shamir_persistence.py b/tests/persistence_tests/test_shamir_persistence.py index fb3cc5881d..53553d8399 100644 --- a/tests/persistence_tests/test_shamir_persistence.py +++ b/tests/persistence_tests/test_shamir_persistence.py @@ -42,7 +42,7 @@ def test_abort(core_emulator: Emulator): device_handler.run(device.recover, pin_protection=False) - assert debug.wait_layout().title() == "RECOVER WALLET" + assert debug.wait_layout().title().lower() == "recover wallet" layout = debug.click(buttons.OK, wait=True) assert "number of words" in layout.text_content() @@ -61,7 +61,7 @@ def test_abort(core_emulator: Emulator): assert "Enter your backup" in debug.read_layout().text_content() layout = debug.click(buttons.CANCEL, wait=True) - assert layout.title() in ("ABORT RECOVERY", "CANCEL RECOVERY") + assert layout.title().lower() in ("abort recovery", "cancel recovery") layout = debug.click(buttons.OK, wait=True) assert layout.main_component() == "Homescreen"