feat: apply visible three-second defaults to unattended prompts

This commit is contained in:
阿白叔 committed 2026-11-16 14:36:56 +08:00
1 parent e4875b4eca
commit efb8cae478
29 files changed
+675 -60

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
"""Batch ICDB checks open diagnostically without dispatching Repair."""
from cbb_refresh_verify.ui import timed_prompt
from dataclasses import replace
import json
@@ -93,7 +94,7 @@ def test_ui_check_summary_reports_findings_and_never_claims_repair(qtbot, tmp_pa
verifier=lambda req: (requests.append(req) or VerifyResult('FAIL',
error_category='ICDB_REPAIR_REQUIRED', stderr='发现 ICDB 问题,未执行修复。')),
status_refresher=lambda names, _: {name: 'PENDING' for name in names})
monkeypatch.setattr(QMessageBox, 'question', lambda *a, **k: (prompts.append(a[2]) or QMessageBox.Yes))
monkeypatch.setattr(timed_prompt, 'question', lambda *a, **k: (prompts.append(a[2]) or QMessageBox.Yes))
window.search_edit.setText('Beta')
window.icdb_repair_button.click(); qtbot.waitUntil(lambda: not window._icdb_active())
assert requests[0].maintenance and not requests[0].auto_repair