DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
docs(testing): fix the navbar line citations and sync the batch-00 facts
hairyf6ee4ef92cc7c
diff --git a/docs/testing/desktop/00-overview.md b/docs/testing/desktop/00-overview.mdindex 50314d7c..8a4c95e3 100644--- a/docs/testing/desktop/00-overview.md+++ b/docs/testing/desktop/00-overview.md@@ -4,7 +4,7 @@> 规范来源:[E2E 测试规范](../../specs/desktop.test.md)、[桌面端开发规范](../../specs/agents.desktop.md)> 流程来源:[渐进式测试推进规则](../progressive.md)> 同构套件:[插件用例集](../plugins/00-overview.md)-> 状态:提案中(文档已提交,等待授权与运行验证)+> 状态:批次日进行中——`00` 总览已落地,`01`–`29` 用例文档待接线(见 §8 G2/G3/G4)---@@ -249,7 +249,7 @@| --- | --- | --- | --- || G1 | 事实 | 前端产物 `dist/` 与 debug 二进制是否最新,取决于最近一次 `pnpm build` / `cargo build` | 二进制陈旧时全部用例的失败不可归因,需先重建 || G2 | 缺口 | `desktop` project 尚未配置(无 `vitest.desktop.config.ts`、无 `test:e2e:desktop` 脚本、`test/e2e/specs/` 不存在) | 全部 273 条用例标注 `[自动化] 待接线`,不得写成可直接运行的 `it()` |-| G3 | 缺口 | 壳层(`src/`)`data-testid` 数量为 **0**,`test/e2e/support/selectors.ts` 不存在,而 `desktop.test.md` §5 要求 E2E 必须用 `data-testid` | 每个文件末尾的「选择器契约(待补)」即为接线前置;未补齐前无法定位元素 |+| G3 | 缺口 | `test/e2e/support/selectors.ts` 仍不存在;壳层 `data-testid` 仅 `01` 批次声明的 3 个(`dsh-shell-root`、`dsh-navbar-root`、`dsh-navbar-dev-chip`),`02` 及后续批次所需选择器均待补 | 每个文件末尾的「选择器契约」即为该批次接线前置;未补齐前无法定位元素 || G4 | 缺口 | 桌面端缺少宿主编排:现有 `test/e2e/support/dsh-host.ts` 只编排插件 L2 的 `dsh web` 进程 | L3 用例需另建「拉起真实二进制 + 绑定 WDIO 会话 + 收尾」的编排 || G5 | 冲突 | `desktop.test.md` §6 称 debug 端口固定 `3081` 不可改;实现存在占用递增逻辑(`launch.rs:66`),`capabilities/default.json:4` 亦声明 NOT fixed | 端口前置按「实测空闲」执行,不假设端口恒定 || G6 | 缺口 | 失败产物目录 `test/e2e/.artifacts/` 仅有文档约定与 `.gitignore`,无实现 | 失败定位在接线前只能依赖日志 |diff --git a/docs/testing/desktop/01-window-boot.md b/docs/testing/desktop/01-window-boot.mdindex 6fcef5af..8ab78626 100644--- a/docs/testing/desktop/01-window-boot.md+++ b/docs/testing/desktop/01-window-boot.md@@ -19,7 +19,7 @@| 壳层导航栏高度常量 `SHELL_NAV_HEIGHT = 44` | `src-tauri/src/desktop/builder.rs:44` || 导航栏根元素 `h-11`(与上者同真值,由 Rust 单测守门) | `src/layout/components/navbar.tsx:347` || 壳层根容器 `flex h-screen w-screen` | `src/layout/index.tsx:144` |-| DEV 标记 Chip 仅在 `import.meta.env.DEV` 下渲染 | `src/layout/components/navbar.tsx:511-515` |+| DEV 标记 Chip 仅在 `import.meta.env.DEV` 下渲染 | `src/layout/components/navbar.tsx:512-516` || 首次挂载自动启动 harness(StrictMode 去重) | `src/layout/index.tsx:81`、`src/store/modules/harness/store.ts:119-124` || 启动阶段枚举 `checking/installing/starting/preinstall/ready/error` | `src/store/modules/harness/types.ts:4` || Debug 端口常量 `DSH_DEV_PORT = 3081` | `src-tauri/src/config/constants.rs:53` |@@ -104,7 +104,7 @@[Case ID] TC-DSK-L3-006[层级] L3(真实 Tauri 窗口)[类型] 边界-[追踪] `src/layout/components/navbar.tsx:511-515`+[追踪] `src/layout/components/navbar.tsx:512-516`[自动化] 待接线(同上)[前置条件] 运行的是 Debug 构建[测试数据] 标记节点 `dsh-navbar-dev-chip`diff --git a/docs/testing/desktop/02-shell-navigation.md b/docs/testing/desktop/02-shell-navigation.mdindex 0047a98d..e32eea6f 100644--- a/docs/testing/desktop/02-shell-navigation.md+++ b/docs/testing/desktop/02-shell-navigation.md@@ -13,18 +13,18 @@| 事实 | 位置 || --- | --- |-| 导航栏根元素与 44px 高度 | `src/layout/components/navbar.tsx:344-355` |-| 「文件」菜单项 id:`new-window`/`new-chat`/`open-folder`/`close`/`quit` | `src/layout/components/navbar.tsx:388-429` |+| 导航栏根元素与 44px 高度 | `src/layout/components/navbar.tsx:344-356` |+| 「文件」菜单项 id:`new-window`/`new-chat`/`open-folder`/`close`/`quit` | `src/layout/components/navbar.tsx:389-430` || 「配置」菜单项来自 `CONFIG_TABS`(`application`/`profiles`/`plugins`/`harness`) | `src/layout/components/navbar.tsx:82-87`、`:444-454` |-| 「帮助」菜单项 id:`copy-run-logs`/`check-update`/`about`/`documentation` | `src/layout/components/navbar.tsx:469-505` |-| 侧边栏开关仅在 `onToggleSidebar != null && tauriEnabled` 时渲染 | `src/layout/components/navbar.tsx:356` |+| 「帮助」菜单项 id:`copy-run-logs`/`check-update`/`about`/`documentation` | `src/layout/components/navbar.tsx:470-506` |+| 侧边栏开关仅在 `onToggleSidebar != null && tauriEnabled` 时渲染 | `src/layout/components/navbar.tsx:357` || `tauriEnabled` 判定:插件列表含 `dsh-tauri` | `src/layout/components/navbar.tsx:70`、`:173` |-| 「新聊天」「打开文件夹」在回调缺席时 `isDisabled` | `src/layout/components/navbar.tsx:399`、`:410` |+| 「新聊天」「打开文件夹」在回调缺席时 `isDisabled` | `src/layout/components/navbar.tsx:400`、`:410` || 折叠状态来自 iframe 桥消息 `dsh://sidebar:collapsed` | `src/layout/components/webview.tsx:41-45` || 侧边栏切换向 iframe 发 `dsh://sidebar:toggle` | `src/layout/components/webview.tsx:70` || 拖拽区带 `data-tauri-drag-region`,非 macOS 双击切换最大化 | `src/layout/components/navbar.tsx:190-194`、`:519-524` || macOS 原生全屏时整条导航栏 `hidden` | `src/layout/components/navbar.tsx:97-143`、`:349` |-| macOS 上「文件」「帮助」不渲染(由原生菜单承载) | `src/layout/components/navbar.tsx:372`、`:543` |+| macOS 上「文件」「帮助」不渲染(由原生菜单承载) | `src/layout/components/navbar.tsx:373`、`:543` || macOS 原生菜单事件 `macos-menu-action` 复用壳层操作 | `src/layout/components/navbar.tsx:310-342` |---@@ -36,7 +36,7 @@[Case ID] TC-DSK-L3-009[层级] L3(真实 Tauri 窗口)[类型] 正向-[追踪] 批次 02;`src/layout/components/navbar.tsx:344-509`+[追踪] 批次 02;`src/layout/components/navbar.tsx:344-510`[自动化] 待接线(`test/e2e/specs/desktop/02-shell-navigation.e2e.ts`)[前置条件] 应用已进入 `ready`;平台非 macOS[测试数据] 选择器 `dsh-navbar-root`、`dsh-navbar-menu-file`、`dsh-navbar-menu-config`、`dsh-navbar-menu-help`@@ -62,7 +62,7 @@[Case ID] TC-DSK-L3-011[层级] L3(真实 Tauri 窗口)[类型] 正向-[追踪] `src/layout/components/navbar.tsx:458-508`+[追踪] `src/layout/components/navbar.tsx:459-509`[自动化] 待接线(同上)[前置条件] TC-DSK-L3-009 通过[测试数据] 期望 id 顺序:`copy-run-logs`、`check-update`、`about`、`documentation`@@ -75,7 +75,7 @@[Case ID] TC-DSK-L3-012[层级] L3(真实 Tauri 窗口)[类型] 正向-[追踪] `src/layout/components/navbar.tsx:377-432`+[追踪] `src/layout/components/navbar.tsx:378-433`[自动化] 待接线(同上)[前置条件] TC-DSK-L3-009 通过[测试数据] 期望 id 顺序:`new-window`、`new-chat`、`open-folder`、`close`、`quit`@@ -92,7 +92,7 @@[Case ID] TC-DSK-L3-013[层级] L3(真实 Tauri 窗口)[类型] 正向-[追踪] `src/layout/components/webview.tsx:41-45`;`src/layout/components/navbar.tsx:356-371`+[追踪] `src/layout/components/webview.tsx:41-45`;`src/layout/components/navbar.tsx:357-372`[自动化] 待接线(同上)[前置条件] 当前档案已安装 `dsh-tauri`;应用处于 `ready`[测试数据] 桥消息 `dsh://sidebar:collapsed`,`collapsed` 依次取 `false`、`true`@@ -118,7 +118,7 @@[Case ID] TC-DSK-L3-015[层级] L3(真实 Tauri 窗口)[类型] 异常-[追踪] `src/layout/components/navbar.tsx:399`、`:410`;`src/layout/components/webview.tsx:68-73`+[追踪] `src/layout/components/navbar.tsx:400`、`:410`;`src/layout/components/webview.tsx:68-73`[自动化] 待接线(同上)[前置条件] 应用处于 `preinstall`(无 iframe 回调),导航栏仍渲染[测试数据] 菜单项 `new-chat`、`open-folder`diff --git a/docs/testing/desktop/12-window-tray.md b/docs/testing/desktop/12-window-tray.mdindex 5963df91..e28dc1f2 100644--- a/docs/testing/desktop/12-window-tray.md+++ b/docs/testing/desktop/12-window-tray.md@@ -36,7 +36,7 @@[Case ID] TC-DSK-L3-087[层级] L3(真实 Tauri 窗口)[类型] 正向-[追踪] `src/layout/components/navbar.tsx:544-553`+[追踪] `src/layout/components/navbar.tsx:545-554`[自动化] 待接线(`test/e2e/specs/desktop/12-window-tray.e2e.ts`)[前置条件] 窗口处于正常(非最小化)状态;平台非 macOS[测试数据] 选择器 `dsh-navbar-window-minimize`@@ -49,7 +49,7 @@[Case ID] TC-DSK-L3-088[层级] L3(真实 Tauri 窗口)[类型] 正向-[追踪] `src/layout/components/navbar.tsx:555-564`+[追踪] `src/layout/components/navbar.tsx:556-565`[自动化] 待接线(同上)[前置条件] 窗口非最大化;平台非 macOS[测试数据] 选择器 `dsh-navbar-window-maximize`@@ -62,7 +62,7 @@[Case ID] TC-DSK-L3-089[层级] L3(真实 Tauri 窗口)[类型] 正向-[追踪] `src/layout/components/navbar.tsx:566-575`;`src/ui/config/components/close-action.tsx:24`+[追踪] `src/layout/components/navbar.tsx:567-576`;`src/ui/config/components/close-action.tsx:24`[自动化] 待接线(同上)[前置条件] 设置中关闭行为为 `tray`(默认);平台非 macOS[测试数据] 选择器 `dsh-navbar-window-background`diff --git a/docs/testing/desktop/16-update.md b/docs/testing/desktop/16-update.mdindex d2e51e31..f1c3712f 100644--- a/docs/testing/desktop/16-update.md+++ b/docs/testing/desktop/16-update.md@@ -15,11 +15,11 @@| --- | --- || 应用更新轮询间隔 10 分钟,启动即检查一次 | `src/layout/index.tsx:21`、`:85-89` || 轮询失败一律静默(不打扰用户) | `src/layout/index.tsx:86` |-| 「更新可用」chip 紧跟「帮助」右侧,三平台均显示 | `src/layout/components/navbar.tsx:528-541` |+| 「更新可用」chip 紧跟「帮助」右侧,三平台均显示 | `src/layout/components/navbar.tsx:529-542` || 「帮助 → 检查更新」:有更新才弹框,无更新提示「已是最新」 | `src/layout/components/navbar.tsx:283-295` || 检查失败 → 危险提示「检查失败」(不冒充「已是最新」) | `src/layout/components/navbar.tsx:291-294` || 更新对话框 `DesktopUpdateDialog` | `src/ui/dialog/update.tsx`;`src/layout/components/navbar.tsx:278-280` |-| 「检查更新」项内的新版本标记 | `src/layout/components/navbar.tsx:483-488` |+| 「检查更新」项内的新版本标记 | `src/layout/components/navbar.tsx:484-489` || 核心更新提示由 `harnessUpdater.showToast` 触发,仅提示不打断 | `src/layout/index.tsx:128-133` || 「立即更新」先过破坏性更改确认,取消即中止 | `src/layout/index.tsx:135-141`;`src/ui/config/hooks/use-core-breaking-confirm.tsx` || 「应用」面板核心版本旁的新版本链接 | `src/ui/config/debug.tsx:260-269` |@@ -34,7 +34,7 @@[Case ID] TC-DSK-L3-121[层级] L3(真实 Tauri 窗口)[类型] 正向-[追踪] `src/layout/components/navbar.tsx:531-541`;`src/layout/index.tsx:88-89`+[追踪] `src/layout/components/navbar.tsx:532-542`;`src/layout/index.tsx:88-89`[自动化] 待接线(`test/e2e/specs/desktop/16-update.e2e.ts`)[前置条件] 已构造「存在更高版本」的更新检查结果;联网[测试数据] 选择器 `dsh-navbar-update-chip`diff --git a/docs/testing/desktop/28-desktop-update-internals.md b/docs/testing/desktop/28-desktop-update-internals.mdindex dc2c5801..c28e1df2 100644--- a/docs/testing/desktop/28-desktop-update-internals.md+++ b/docs/testing/desktop/28-desktop-update-internals.md@@ -36,7 +36,7 @@| 前端轮询间隔 `DESKTOP_UPDATE_POLL_INTERVAL = 10 * 60_000`,启动即检查一次 | `src/layout/index.tsx:21`、`:88-89` || 轮询失败静默(`.catch(() => {})`),不打扰用户 | `src/layout/index.tsx:86` || 「帮助 → 检查更新」三态:有更新弹框 / 无更新「已是最新」/ 失败危险提示 | `src/layout/components/navbar.tsx:283-295` |-| 「更新可用」chip 与帮助菜单打开同一对话框 | `src/layout/components/navbar.tsx:531-541` |+| 「更新可用」chip 与帮助菜单打开同一对话框 | `src/layout/components/navbar.tsx:532-542` || 静默下载:`check()` 命中即 `void this.download()`,失败只 `console.error` | `src/store/modules/desktop-updater/store.ts:57-64`、`:94-96` || 在途下载单飞(模块级 `downloadTask` 复用) | `src/store/modules/desktop-updater/store.ts:16`、`:82-83` || 进度事件 `desktop-update-progress` 写入 store,仅对话框渲染 | `src/store/modules/desktop-updater/store.ts:168-176`;`src/ui/dialog/update.tsx:71-86` |diff --git a/docs/testing/progressive.md b/docs/testing/progressive.mdindex 2642ae44..7dca92cf 100644--- a/docs/testing/progressive.md+++ b/docs/testing/progressive.md@@ -54,7 +54,7 @@| 批次 | 用例 / 基础设施 | 对应文档 | 状态 | 备注 || --- | --- | --- | --- | --- |-| 00 | 总览、前置与追踪矩阵 | `00-overview.md` | 提案中 | 不承载用例本体 |+| 00 | 总览、前置与追踪矩阵 | `00-overview.md` | 已验证 | 索引/前置/矩阵/缺口已核对;G3 选择器事实随 `01` 批次同步 || 01 | 窗口启动、几何约束、启动前置校验 | `01-window-boot.md` | 提案中 | 8 条 || 02 | 壳层导航栏与条件渲染 | `02-shell-navigation.md` | 提案中 | 9 条 || 03 | 配置对话框打开/定位/切换/关闭 | `03-config-dialog.md` | 提案中 | 7 条 |@@ -126,3 +126,4 @@| 2026-09 | 补齐 `docs/testing/desktop/00`–`19` 桌面端用例文档(148 条) || 2026-09 | 参考 `archive/docs/testing` 旧套件与现有实现代码做覆盖率补全:新增 `desktop/20`–`29`(125 条),桌面端合计 273 条;数据目录隔离规范收敛到 `docs/specs/desktop.test.md` §6 || 2026-09 | 规范文档更名为 `desktop.test.md` / `plugin.test.md`;清除生成残留段落;批次编号统一为用例文档序号,移除 `D*` / `B*` / `PP*` 别名 |+| 2026-09 | 批次 `00` 验证通过:索引、前置、追踪矩阵与缺口清单核对无误;补 `docs/testing/README.md` 作为文档入口 |