feat(n7web): enhance control workflows and status feedback
This commit is contained in:
@@ -146,7 +146,7 @@ console.log(JSON.stringify(context.result));
|
||||
|
||||
def test_mode_gallery_layout_and_copy_expose_three_management_sections() -> None:
|
||||
app = (WEB / "app.js").read_text(encoding="utf-8")
|
||||
html = (WEB / "index.html").read_text(encoding="utf-8")
|
||||
template = (WEB / "src" / "App.vue").read_text(encoding="utf-8")
|
||||
styles = (WEB / "styles.css").read_text(encoding="utf-8")
|
||||
definitions = app[
|
||||
app.index("const MODE_GALLERY_GROUPS")
|
||||
@@ -161,8 +161,8 @@ def test_mode_gallery_layout_and_copy_expose_three_management_sections() -> None
|
||||
assert 'if (group.id === "custom") grid.append(createModeGalleryAddCard())' in app
|
||||
assert "function createModeGalleryEmpty(group)" in app
|
||||
assert 'section.setAttribute("aria-labelledby", headingId)' in app
|
||||
assert "自定义模式 · 静态模式 · 动态模式" in html
|
||||
assert "按来源与运行方式整理,快速定位并管理模式" in html
|
||||
assert "自定义模式 · 静态模式 · 动态模式" in template
|
||||
assert "按来源与运行方式整理,快速定位并管理模式" in template
|
||||
assert "grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));" in styles
|
||||
|
||||
|
||||
@@ -173,11 +173,17 @@ def test_top_mode_cards_render_real_actions_in_a_body_level_hover_and_focus_prev
|
||||
assert "function modeExecutionActionViews(mode)" in app
|
||||
assert "Array.isArray(mode?.operations)" in app
|
||||
assert "function renderModeActionPopover(mode)" in app
|
||||
assert "modeEditorReadableCommands(mode?.command_flow)" in app
|
||||
assert 'eyebrow.dataset.modeActionEyebrow = "true"' in app
|
||||
assert '"最新控制指令流"' in app
|
||||
assert 'popover.setAttribute("role", "tooltip")' in app
|
||||
assert "document.body.append(popover)" in app
|
||||
assert 'device.innerHTML = "<b>设备</b>"' in app
|
||||
assert 'target.innerHTML = "<b>目标</b>"' in app
|
||||
assert 'parameters.innerHTML = "<b>参数</b>"' in app
|
||||
assert 'appendMetadata("语义", action.semantic || action.operation_ref)' in app
|
||||
assert 'appendMetadata("实际", action.command)' in app
|
||||
assert 'appendMetadata("通道", action.channel)' in app
|
||||
assert 'appendMetadata("设备", action.device)' in app
|
||||
assert 'appendMetadata("目标", action.target)' in app
|
||||
assert 'appendMetadata("参数", action.parameters)' in app
|
||||
assert 'button.setAttribute("aria-describedby", popover.id)' in app
|
||||
assert 'group.addEventListener("pointerover"' in app
|
||||
assert 'group.addEventListener("pointerout"' in app
|
||||
|
||||
Reference in New Issue
Block a user