mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-25 17:09:44 +00:00
fixup! feat(tests): simplify asserts on translated strings
This commit is contained in:
parent
f9218ae59e
commit
18f0557f95
@ -153,8 +153,7 @@ def test_tutorial_menu_funfact(device_handler: "BackgroundDeviceHandler"):
|
||||
layout = debug.click(buttons.CORNER_BUTTON)
|
||||
assert TR.tutorial__did_you_know in layout.text_content()
|
||||
layout = debug.click(buttons.VERTICAL_MENU[0])
|
||||
text_content = [s.replace("\n", " ") for s in TR.tutorial__first_wallet]
|
||||
assert layout.text_content() in text_content
|
||||
assert layout.text_content() in TR.tutorial__first_wallet.replace("\n", " ")
|
||||
|
||||
layout = debug.click(buttons.CORNER_BUTTON)
|
||||
assert TR.tutorial__did_you_know in layout.text_content()
|
||||
|
@ -629,7 +629,7 @@ class InputFlowShowXpubQRCode(InputFlowBase):
|
||||
br = yield
|
||||
layout = self.debug.read_layout()
|
||||
|
||||
assert layout.title() in (TR.address__public_key, ["XPUB"])
|
||||
assert layout.title() in (TR.address__public_key, "XPUB")
|
||||
|
||||
self.debug.click(buttons.CORNER_BUTTON)
|
||||
assert "VerticalMenu" in self.all_components()
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user