feat(dsh): show AI readiness and prevent repeated intervention on status changes
Core regression / Python 3.12 core, intervention UI and release configuration (push) Failing after 21s
Core regression / JavaScript syntax (push) Successful in 3s
Core regression / Python 3.12 core, intervention UI and release configuration (pull_request) Failing after 21s
Core regression / JavaScript syntax (pull_request) Successful in 3s
Core regression / Python 3.12 core, intervention UI and release configuration (push) Failing after 21s
Core regression / JavaScript syntax (push) Successful in 3s
Core regression / Python 3.12 core, intervention UI and release configuration (pull_request) Failing after 21s
Core regression / JavaScript syntax (pull_request) Successful in 3s
This commit is contained in:
1 parent
bd06bbc7d2
commit
cf6e3f9d2a
28 files changed
+1159
-37
No files matched your search
@@ -1,8 +1,10 @@
|
||||
from PySide6.QtCore import Signal, Qt
|
||||
from PySide6.QtWidgets import QWidget
|
||||
from types import SimpleNamespace
|
||||
import pytest
|
||||
from dx_productivity.trial_task_center.errors import TaskCenterError
|
||||
|
||||
pytestmark = pytest.mark.usefixtures('ai_ready')
|
||||
|
||||
class HarnessView(QWidget):
|
||||
action_requested = Signal(object)
|
||||
@@ -64,7 +66,8 @@ def test_dsh_navigation_surfaces_lazy_startup_failure(ui, monkeypatch, qtbot):
|
||||
raise RuntimeError('controlled missing WebEngine')
|
||||
monkeypatch.setattr(type(window), '_create_dsh_view', fail)
|
||||
qtbot.mouseClick(window.dsh_navigation, Qt.MouseButton.LeftButton)
|
||||
assert 'DSH助手启动失败' in window.run_panel.operator_band.text()
|
||||
assert window.ai_status_indicator.property('state') == 'unavailable'
|
||||
assert 'DSH助手不可用' in window.ai_status_indicator.toolTip()
|
||||
|
||||
|
||||
def test_cross_task_harness_action_never_reaches_task_service(ui, monkeypatch):
|
||||
|
||||
Reference in new issue
Block a user