fix(web): unify mode previews and label window positions
This commit is contained in:
@@ -21,17 +21,17 @@ def test_console_contains_ai_assistant_surface():
|
||||
assert 'placeholder="向 AI助手提问或交代工作"' in template
|
||||
assert 'aria-label="发送消息"' in template
|
||||
assert 'import "../assistant-chat.css";' in vite_entry
|
||||
assert 'src="/assistant-chat.js?v=codex-assistant-40-seat-rows"' in html
|
||||
assert 'src="/assistant-chat.js?v=codex-assistant-41-unified-preview"' in html
|
||||
|
||||
|
||||
def test_codex_assistant_assets_are_versioned_together_in_the_service_worker():
|
||||
service_worker = (ROOT / "apps/web-console/service-worker.js").read_text(encoding="utf-8")
|
||||
assert (
|
||||
'const CACHE_VERSION = "cognitive-agent-pad-v337-seat-rows"'
|
||||
'const CACHE_VERSION = "cognitive-agent-pad-v338-unified-preview"'
|
||||
in service_worker
|
||||
)
|
||||
assert '"/assistant-chat.css?v=codex-assistant-30"' in service_worker
|
||||
assert '"/assistant-chat.js?v=codex-assistant-40-seat-rows"' in service_worker
|
||||
assert '"/assistant-chat.css?v=codex-assistant-31-unified-preview"' in service_worker
|
||||
assert '"/assistant-chat.js?v=codex-assistant-41-unified-preview"' in service_worker
|
||||
|
||||
|
||||
def test_codex_frontend_uses_one_streaming_endpoint_and_agent_work_events():
|
||||
@@ -91,7 +91,8 @@ def test_validated_controls_are_mirrored_into_a_compact_assistant_card():
|
||||
assert "window.CognitiveAgentConsoleV2?.getParsedCanCommands?.(result)" in script
|
||||
assert "fallbackAssistantControlCommands(result)" in script
|
||||
assert 'card.className = "assistant-dispatched-controls"' in script
|
||||
assert 'const headingText = previewOnly ? "控制指令预览(未下发)" : "下发控制指令"' in script
|
||||
assert 'const headingText = mergedResult.mode_profile_draft?.name' in script
|
||||
assert 'previewOnly ? "控制指令预览(未下发)" : "下发控制指令"' in script
|
||||
assert 'count.className = "assistant-dispatched-controls-count"' in script
|
||||
assert 'list.className = "assistant-dispatched-controls-list"' in script
|
||||
assert "value.textContent = assistantControlValue(item)" in script
|
||||
|
||||
Reference in New Issue
Block a user