testing: test_se2.py::test_ux_wrong_pin delete TP at the end to preserve memory for next tests
(cherry picked from commit b0957d770f)
This commit is contained in:
parent
ec17c24c9f
commit
84d0a7e002
@ -383,19 +383,6 @@ def test_ux_wrong_pin(num_wrong, op_mode, expect, xflags, enter_number,
|
||||
new_pin_confirmed, press_select, enter_pin):
|
||||
# wrong pin choices, not implementation
|
||||
goto_trick_menu()
|
||||
m = cap_menu()
|
||||
|
||||
if not ('Add If Wrong' in m):
|
||||
# already has "if wrong"
|
||||
pick_menu_item('↳WRONG PIN')
|
||||
pick_menu_item('Delete Trick')
|
||||
time.sleep(.1)
|
||||
_, story = cap_story()
|
||||
assert "Are you SURE" in story
|
||||
assert "Remove special handling of wrong PINs?" in story
|
||||
press_select()
|
||||
time.sleep(.1)
|
||||
|
||||
pick_menu_item('Add If Wrong')
|
||||
time.sleep(.1)
|
||||
_, story = cap_story()
|
||||
@ -435,6 +422,14 @@ def test_ux_wrong_pin(num_wrong, op_mode, expect, xflags, enter_number,
|
||||
time.sleep(.1)
|
||||
m = cap_menu()
|
||||
assert 'Add If Wrong' not in m
|
||||
pick_menu_item('↳WRONG PIN')
|
||||
pick_menu_item('Delete Trick')
|
||||
time.sleep(.1)
|
||||
_, story = cap_story()
|
||||
assert "Are you SURE" in story
|
||||
assert "Remove special handling of wrong PINs?" in story
|
||||
press_select()
|
||||
time.sleep(.1)
|
||||
|
||||
|
||||
@pytest.mark.parametrize('subchoice, expect, xflags', [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user