fix: harden PCB and iCDB verification lifecycle for beta release
This commit is contained in:
1 parent
11a2b2e46e
commit
a11eb3c766
33 files changed
+1226
-267
No files matched your search
@@ -345,14 +345,14 @@ def test_phase_aware_unknown_window_fails_without_action():
|
||||
|
||||
def test_phase_aware_action_is_pending_until_window_disappears():
|
||||
restore = evidence_window(
|
||||
'Database Restoration - Load the last user saved database',
|
||||
phase=DialogPhase.DATABASE_RECOVERY,
|
||||
'Do you want to save the reusable block cell',
|
||||
phase=DialogPhase.SAVE,
|
||||
)
|
||||
backend = PhaseBackend([[restore], []])
|
||||
supervisor = DialogSupervisor(backend, rules=RULES, retry_seconds=60)
|
||||
|
||||
first = supervisor.poll(DialogPhase.DATABASE_RECOVERY)
|
||||
second = supervisor.poll(DialogPhase.DATABASE_RECOVERY)
|
||||
first = supervisor.poll(DialogPhase.SAVE)
|
||||
second = supervisor.poll(DialogPhase.SAVE)
|
||||
|
||||
assert first.action_sent and not first.resolved
|
||||
assert second.resolved
|
||||
@@ -361,19 +361,19 @@ def test_phase_aware_action_is_pending_until_window_disappears():
|
||||
|
||||
def test_phase_aware_changed_content_is_not_window_gone():
|
||||
first = evidence_window(
|
||||
'Database Restoration - Load the last user saved database',
|
||||
phase=DialogPhase.DATABASE_RECOVERY,
|
||||
'Do you want to save the reusable block cell',
|
||||
phase=DialogPhase.SAVE,
|
||||
)
|
||||
changed = evidence_window(
|
||||
'Database Restoration - Load the last user saved database - selected',
|
||||
phase=DialogPhase.DATABASE_RECOVERY,
|
||||
'Do you want to save the reusable block cell - selected',
|
||||
phase=DialogPhase.SAVE,
|
||||
selected=True,
|
||||
)
|
||||
backend = PhaseBackend([[first], [changed]])
|
||||
supervisor = DialogSupervisor(backend, rules=RULES, retry_seconds=60)
|
||||
|
||||
first_result = supervisor.poll(DialogPhase.DATABASE_RECOVERY)
|
||||
second_result = supervisor.poll(DialogPhase.DATABASE_RECOVERY)
|
||||
first_result = supervisor.poll(DialogPhase.SAVE)
|
||||
second_result = supervisor.poll(DialogPhase.SAVE)
|
||||
|
||||
assert first_result.action_sent and not first_result.resolved
|
||||
assert not second_result.resolved
|
||||
|
||||
Reference in new issue
Block a user