test fixes
This commit is contained in:
parent
e361408a28
commit
30b1c04259
@ -817,7 +817,10 @@ def test_exit_dev_backup(tmp, unit_test, goto_home, pick_menu_item, need_keypres
|
||||
('W'*31) + ".7z",
|
||||
])
|
||||
def test_backup_long_name_display(fname, goto_home, pick_menu_item, need_keypress, src_root_dir,
|
||||
microsd_path, press_cancel, cap_screen):
|
||||
microsd_path, press_cancel, cap_screen, is_q1):
|
||||
if not is_q1:
|
||||
raise pytest.skip("Only Q")
|
||||
|
||||
fn = microsd_path(fname)
|
||||
shutil.copy(f'{src_root_dir}/docs/backup.7z', fn)
|
||||
|
||||
|
||||
@ -1387,8 +1387,8 @@ def test_temporary_from_backup(multisig, backup_system, import_ms_wallet, get_se
|
||||
|
||||
word_menu_entry(bk_pw, has_checksum=False)
|
||||
|
||||
title, story = cap_story()
|
||||
time.sleep(.5)
|
||||
title, story = cap_story()
|
||||
assert f"[{xfp_str}]" == title
|
||||
assert "Above is the master fingerprint of the seed stored in the backup." in story
|
||||
assert f"load backup as temporary seed" in story
|
||||
@ -1471,8 +1471,8 @@ def test_temporary_from_backup_usb(backup_system, set_seed_words, cap_story, ver
|
||||
elif password:
|
||||
enter_complex(bkpw, apply=False, b39pass=False)
|
||||
|
||||
title, story = cap_story()
|
||||
time.sleep(.5)
|
||||
title, story = cap_story()
|
||||
assert f"[{xfp_str}]" == title
|
||||
assert "Above is the master fingerprint of the seed stored in the backup." in story
|
||||
assert f"load backup as temporary seed" in story
|
||||
|
||||
@ -100,7 +100,8 @@ def test_menu_contents(set_hobble, pick_menu_item, cap_menu, en_okeys, en_notes,
|
||||
'Export Wallet',
|
||||
'View Identity',
|
||||
'Paper Wallets',
|
||||
'Destroy Seed' }
|
||||
'Destroy Seed',
|
||||
f'Show {"Firmware" if is_q1 else "FW"} Version' }
|
||||
|
||||
if is_q1 and en_miniscript:
|
||||
adv_expect.add('Teleport Miniscript PSBT')
|
||||
@ -327,6 +328,9 @@ def test_h_tempseeds(mode, set_hobble, pick_menu_item, cap_menu, settings_set, i
|
||||
|
||||
word_menu_entry(pw, has_checksum=False)
|
||||
|
||||
time.sleep(.1)
|
||||
press_select() # confirm loading of the backup
|
||||
time.sleep(.1)
|
||||
title, story = cap_story()
|
||||
assert title == 'FAILED'
|
||||
assert 'successfully tested recovery' in story
|
||||
|
||||
Loading…
Reference in New Issue
Block a user