mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-13 02:58:57 +00:00
fixup! tests: fix small irregularities
This commit is contained in:
parent
8f4cf99e48
commit
d1625ab4a8
@ -15,7 +15,7 @@ if TYPE_CHECKING:
|
||||
async def request_word_count(recovery_type: RecoveryType) -> int:
|
||||
count = await interact(
|
||||
trezorui2.select_word_count(recovery_type=recovery_type),
|
||||
"word_count",
|
||||
"recovery_word_count",
|
||||
ButtonRequestType.MnemonicWordCount,
|
||||
)
|
||||
return int(count)
|
||||
|
@ -461,11 +461,11 @@ class InputFlowShowMultisigXPUBs(InputFlowBase):
|
||||
|
||||
# Three xpub pages with the same testing logic
|
||||
for xpub_num in range(3):
|
||||
expected_title = f"multisig xpub #{xpub_num + 1}\n" + (
|
||||
"(yours)" if self.index == xpub_num else "(cosigner)"
|
||||
expected_title = f"MULTISIG XPUB #{xpub_num + 1}\n" + (
|
||||
"(Yours)" if self.index == xpub_num else "(Cosigner)"
|
||||
)
|
||||
layout = self.debug.swipe_left()
|
||||
assert expected_title == layout.title().lower()
|
||||
assert expected_title == layout.title()
|
||||
content = layout.text_content().replace(" ", "")
|
||||
assert self.xpubs[xpub_num] in content
|
||||
|
||||
@ -498,7 +498,7 @@ class InputFlowShowMultisigXPUBs(InputFlowBase):
|
||||
# Three xpub pages with the same testing logic
|
||||
for xpub_num in range(3):
|
||||
expected_title = f"MULTISIG XPUB #{xpub_num + 1} " + (
|
||||
"(YOURS)" if self.index == xpub_num else "(COSIGNER)"
|
||||
"(Yours)" if self.index == xpub_num else "(Cosigner)"
|
||||
)
|
||||
layout = self.debug.press_right()
|
||||
assert expected_title in layout.title()
|
||||
|
@ -189,7 +189,7 @@ class RecoveryFlow:
|
||||
def input_number_of_words(self, num_words: int) -> BRGeneratorType:
|
||||
br = yield
|
||||
assert br.code == B.MnemonicWordCount
|
||||
assert br.name == "word_count"
|
||||
assert br.name == "recovery_word_count"
|
||||
if self.client.model is models.T2B1:
|
||||
TR.assert_in(self.debug.read_layout().title(), "word_count__title")
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user