# e2e 全量盘点(2026-11-26) > 只读盘点,未修改任何代码。命令:`npm run build && node scripts/serve-test.js` + `IWB_BASE_URL=http://127.0.0.1:8787 npx playwright test --reporter=json` | 项 | 值 | |---|---| | 版本 / 提交 | v3.26.107 / 159c55c | | spec 数 | 59 | | 用例数 | 251 | | 通过 | 123 | | 失败 | 128 | | flaky | 0 | | 总耗时 | 694 s | ## 分类汇总 | 类别 | 数量 | |---|---| | A 用例整体超时(已确认主因:侧栏遮挡) | 72 | | D 视觉快照基线 | 22 | | G 断言值不符(待判定真缺陷/阈值漂移) | 14 | | B 元素不可见 | 12 | | F 无头环境限制 | 7 | | E 下载事件未触发 | 1 | ## 按 spec 统计 | spec | 红/总 | 主要类别 | |---|---|---| | _visual-tokens.spec.js | 22/24 | D×22 | | _plugin-host-probe.spec.js | 15/22 | A×10 G×3 B×2 | | iwb-canvas-ops.spec.js | 13/22 | A×11 G×2 | | iwb-stability.spec.js | 11/26 | A×7 B×2 G×2 | | iwb-picker.spec.js | 8/9 | A×8 | | clipboard-audit.spec.js | 7/21 | F×7 | | iwb-connect-menu.spec.js | 6/9 | B×4 G×2 | | iwb-lib-panel-ux.spec.js | 6/6 | A×6 | | iwb-backup-config.spec.js | 5/5 | A×5 | | iwb-image-memory-parity.spec.js | 5/5 | G×3 A×2 | | iwb-gallery-insert.spec.js | 4/4 | A×4 | | iwb-private-gate.spec.js | 4/4 | B×4 | | iwb-canvas-ux.spec.js | 3/5 | A×3 | | iwb-close-flush.spec.js | 3/3 | A×3 | | iwb-crash-log.spec.js | 2/3 | A×2 | | iwb-download-cors.spec.js | 2/3 | E×1 A×1 | | iwb-lod.spec.js | 2/5 | G×2 | | iwb-tooltip-labels.spec.js | 2/4 | A×2 | | iwb-full-window-resize.spec.js | 1/1 | A×1 | | iwb-history-sweep.spec.js | 1/1 | A×1 | | iwb-image-original.spec.js | 1/2 | A×1 | | iwb-multi-tab.spec.js | 1/2 | A×1 | | iwb-plugin-panel-tab-leak.spec.js | 1/1 | A×1 | | iwb-resume-scope.spec.js | 1/2 | A×1 | | iwb-storage-incremental.spec.js | 1/1 | A×1 | | iwb-typing-perf.spec.js | 1/1 | A×1 | ## 完整红名单 ### _visual-tokens.spec.js(22/24) - [D] ② 画布(节点 + 连线) — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ③ 设置弹窗 — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ④ 库面板(右抽屉 · 图库) — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ⑤ 插件面板(右抽屉 · 提示词库) — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ⑥ 右键菜单 — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ⑦ 插件管理(设置行 + 列表 + 开关) — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ⑧ 插件市场(工具条 + 筛选 + 卡片墙) — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ② 画布(节点 + 连线) — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ③ 设置弹窗 — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ④ 库面板(右抽屉 · 图库) — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ⑤ 插件面板(右抽屉 · 提示词库) — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ⑥ 右键菜单 — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ⑦ 插件管理(设置行 + 列表 + 开关) — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ⑧ 插件市场(工具条 + 筛选 + 卡片墙) — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ⑨ 提示词编辑弹窗 — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ⑩ 提示词详情弹窗 — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ⑨ 提示词编辑弹窗 — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ⑩ 提示词详情弹窗 — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ⑪ 生图服务(多服务商) — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ⑪ 生图服务(多服务商) — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ⑫ 通用(数据/图片/生成/版本) — `Error: expect(page).toHaveScreenshot(expected) failed` - [D] ⑫ 通用(数据/图片/生成/版本) — `Error: expect(page).toHaveScreenshot(expected) failed` ### _plugin-host-probe.spec.js(15/22) - [G] 插件宿主契约:apiVersion / register / 启停 / 状态注入 / 广播 / 无重复订阅 — `Error: expect(received).toEqual(expected) // deep equality` - [A] 插件管理面板:列表 / 启停 / 设置持久化 — `Test timeout of 30000ms exceeded.` - [B] 插件命令:启用后出现在右键菜单,停用后消失 — `Error: expect(locator).toBeVisible() failed` - [A] 插件面板:启用后出现在资源中心 tab 并可挂载;停用后 tab 消失 — `Test timeout of 30000ms exceeded.` - [A] 生成钩子:插件可改写请求体(generationHooks.beforeRequest) — `Test timeout of 30000ms exceeded.` - [A] 插件服务提供方:注册后可作为生图后端(providers) — `Test timeout of 30000ms exceeded.` - [A] 生成钩子:afterResult 在结果归档后被调用(generationHooks.afterResult) — `Test timeout of 30000ms exceeded.` - [A] 鲜艺抠图插件(A2 运行时加载):右键命令调用本地服务并写回新节点 — `Test timeout of 30000ms exceeded.` - [A] A2 运行时插件:从同源 /plugins/ 清单加载、可启用、功能可用(不重编译主包) — `Test timeout of 30000ms exceeded.` - [A] 标注 / 修图插件(A2 运行时加载):右键命令打开编辑器,「新建」在画布新增节点 — `Test timeout of 30000ms exceeded.` - [G] 白底图插件(A2 运行时加载):漂浮菜单「白底图」新建 *_800x800.png 节点,全程无 CSP 违规 — `Error: expect(received).toBe(expected) // Object.is equality` - [A] 白底图插件(A2 运行时加载):未选中节点时右键命令在状态栏报「请先选中一个带图的节点」 — `Test timeout of 30000ms exceeded.` - [G] 远程插件按需加载:未启用的插件在启动时不下载脚本 — `Error: expect(received).toBe(expected) // Object.is equality` - [A] 远程插件按需加载:在插件管理里勾选后按需下载并激活 — `Test timeout of 30000ms exceeded.` - [B] 插件动作仅在 ref:gen / out / layer 的气泡里没有插件按钮,ref 有 — `Error: expect(locator).toBeVisible() failed` ### iwb-canvas-ops.spec.js(13/22) - [A] ② Ctrl+D 复制节点:节点 +1 且原连线保留(canvas-actions.duplicateGraph) — `Test timeout of 30000ms exceeded.` - [A] ④ 文本节点编辑后立即生效(canvas-text 的输入→展示链路) — `Test timeout of 30000ms exceeded.` - [A] ⑤ 气泡删除按钮(2026-11-09 恢复,hover 红、静态灰);右键菜单 / Delete 键仍在 — `Test timeout of 30000ms exceeded.` - [A] ⑨ F2 重命名:单选生效;未选中 / 多选 / 正在输入时都不触发(第 3 个改名入口) — `Test timeout of 30000ms exceeded.` - [G] ⑪ 抓手工具:拖节点仍移动节点(视口不平移) — `Error: 抓手态下拖节点应移动该节点` - [A] ⑨ 节点背景色:气泡色板可选色、刷新后保留、可撤销;右键菜单同入口 — `Test timeout of 30000ms exceeded.` - [A] ⑩ 节点背景色:多选批量上色(同一套色板,一次改多个) — `Test timeout of 30000ms exceeded.` - [G] ⑪ 自定义背景色节点的内层元素走同色系派生;未上色节点保持原样 — `Error: 未上色节点的任务卡应保持默认浅灰` - [A] ⑫ 暗色主题下自定义背景色仍能看清深色文字(对比度 ≥ 7) — `Test timeout of 30000ms exceeded.` - [A] ⑬ 连接节点来源行与组合节点一致;中继节点改色只染圆环、中间透明 — `Test timeout of 30000ms exceeded.` - [A] ⑭ 端口加号提示:hover / 选中未连线显示 +,已连线不显示;点 + 直接弹推荐菜单 — `Test timeout of 30000ms exceeded.` - [A] ⑰ 提示词气泡「放大编辑」:单栏所见即所得(Markdown 实时渲染),关闭写回纯文本 — `Test timeout of 30000ms exceeded.` - [A] ⑪ 库面板(资源中心浮窗)开着时,画布空白处仍能框选 — `Test timeout of 30000ms exceeded.` ### iwb-stability.spec.js(11/26) - [B] 资源中心图库可以打开和关闭 — `Error: expect(locator).toBeVisible() failed` - [B] n 快捷键:未打开则打开图库,再按一次必定关闭(不论当前停在哪个 tab) — `Error: expect(locator).toBeVisible() failed` - [A] 修改 Prompt 后刷新仍然保留文本 — `Test timeout of 30000ms exceeded.` - [A] 打开资源中心不移动画布 — `Test timeout of 30000ms exceeded.` - [G] 节点体(非标题)可直接拖动移动 — `Error: expect(received).not.toBe(expected) // Object.is equality` - [A] 双击文字节点聚焦内容编辑 — `Test timeout of 30000ms exceeded.` - [A] 双击图片节点打开预览 — `Test timeout of 30000ms exceeded.` - [G] 图片节点单击可拖动移动 — `Error: expect(received).not.toBe(expected) // Object.is equality` - [A] 尺寸预设名称可连续输入且不改写比例标识 — `Test timeout of 30000ms exceeded.` - [A] gen 节点尺寸/对齐/质量:自定义尺寸、16 倍数对齐只作用于自定义、质量可发送 — `Test timeout of 30000ms exceeded.` - [A] 图像设置浮层:比例文字 chip / 分辨率 / 质量 / 自定义尺寸 + 16 倍数对齐 / 像素上限 — `Test timeout of 30000ms exceeded.` ### iwb-picker.spec.js(8/9) - [A] ① 面板结构:标题「模型设置」+ 服务商/分组 两个下拉 + 模型网格,无 pageerror — `Test timeout of 30000ms exceeded.` - [A] ② 模型名单行不省略;标签流式排列(按内容宽度,排满自动换行) — `Test timeout of 30000ms exceeded.` - [A] ③ 切服务商 ⇒ 分组重置为该服务商第一个 key,模型网格刷新 — `Test timeout of 30000ms exceeded.` - [A] ④ 点模型 ⇒ 面板关闭 + 触发器更新 + 高亮打勾 — `Test timeout of 30000ms exceeded.` - [A] ⑤ 无 Key 分组:下拉禁用并显示「无分组」;「服务商 · 分组」显示在节点气泡上 — `Test timeout of 30000ms exceeded.` - [A] ⑦ 当前模型已从服务商清单移除 ⇒ 触发器红框提示 + 面板内该项标红 — `Test timeout of 30000ms exceeded.` - [A] ⑧ 面板挂 body(不撑开节点)+ 始终完整落在视口内(会自动上下翻转) — `Test timeout of 30000ms exceeded.` - [A] ⑨ 两个浮层互斥:开「图像设置」会自动关掉「模型设置」(反之亦然) — `Test timeout of 30000ms exceeded.` ### clipboard-audit.spec.js(7/21) - [F] 3. 系统剪贴板有图:Ctrl+V 新建 ref(不替换选中 ref),Ctrl+Shift+V 仍贴节点组 — `Test timeout of 30000ms exceeded.` - [F] 4. 显式入口替换参考图后可撤销回原图 — `Test timeout of 30000ms exceeded.` - [F] 11. 点过「粘贴替换」之后再粘贴图片,不会把这张参考图再替换一次 — `Test timeout of 30000ms exceeded.` - [F] 12. 图片粘进提示词输入框:不落节点,但给一句说明(旧实现纯静默) — `Test timeout of 30000ms exceeded.` - [F] 18. 焦点在节点输入框里按 Ctrl+C 仍能复制节点(旧实现静默失效) — `Test timeout of 30000ms exceeded.` - [F] 19. 焦点在节点输入框里粘节点组:带提示词→粘文字;只有摘要→拦下且不污染输入框 — `Test timeout of 30000ms exceeded.` - [F] 21. 同一张图连粘两次只建一个节点;换一张图照常落地 — `Error: expect(received).toContain(expected) // indexOf` ### iwb-connect-menu.spec.js(6/9) - [G] ① 拖到空白处 ⇒ 弹出「引用该节点生成」,且只列出可连类型 — `Error: 空白处松手应弹出建节点菜单` - [B] ② 点「生图」⇒ 落点建节点 + 自动连边 + 选中 + 一步撤销 — `Error: expect(locator).toBeVisible() failed` - [B] ④ Esc 关闭菜单且不残留预览线 — `Error: expect(locator).toBeVisible() failed` - [B] ⑤ 分层/润色默认隐藏:底栏与右键菜单都没有新建入口 — `Error: expect(locator).toBeVisible() failed` - [G] ⑧ 从输入端口拖到已有节点 ⇒ 直接连边,不弹菜单 — `Error: expect(received).toBe(expected) // Object.is equality` - [B] ⑨ 拖线新建的节点:连线端点立即贴合输入端口(无需移动节点) — `Error: expect(locator).toBeVisible() failed` ### iwb-lib-panel-ux.spec.js(6/6) - [A] ① 资源中心快捷键:Ctrl+F 聚焦搜索 / ↑↓ 选卡片 / Esc 关闭 — `Test timeout of 30000ms exceeded.` - [A] ①b Esc 分层:输入框 / 临时层优先于面板(2026-10-20 回归) — `Test timeout of 30000ms exceeded.` - [A] ② 搜索跨分组 + 当前范围可见 — `Test timeout of 30000ms exceeded.` - [A] ③ 分类胶囊行单行滚动 + ⚙ 固定在右侧 — `Test timeout of 30000ms exceeded.` - [A] ④ 卡片「插入到画布」用 + 图标(不再是 ⬇ 下载) — `Test timeout of 30000ms exceeded.` - [A] ⑤ 手动收起编辑区后记住偏好 — `Test timeout of 30000ms exceeded.` ### iwb-backup-config.spec.js(5/5) - [A] 设置往返:导出备份 → 改成不同值 → 导入该备份 ⇒ 设置恢复为备份里的值(含压缩等此前被丢字段) — `Test timeout of 30000ms exceeded.` - [A] withKeys=true:备份文件里确实带明文密钥(等于导出时的本机值) — `Test timeout of 30000ms exceeded.` - [A] __KEEP__ 本机无值:恢复时给出可见提示(不静默留空) — `Test timeout of 30000ms exceeded.` - [A] withKeys=true 往返:清空本机设置后还原 ⇒ 服务/自定义模型/密钥全部恢复 — `Test timeout of 30000ms exceeded.` - [A] 备份不含设置时:还原前必须明确告警「该备份不含设置」 — `Test timeout of 30000ms exceeded.` ### iwb-image-memory-parity.spec.js(5/5) - [G] ① 跨域远端 4K:输出节点会经代理生成小预览(naturalWidth ≤ 768) — `Error: 跨域图必须走同源代理 /api/img 出缩略图` - [G] ② 负缓存:连续 3 次重渲染不会重复请求远端图(代理命中 ≤2 且不增长) — `Error: expect(received).toBeGreaterThanOrEqual(expected)` - [A] ③ 复制含大图节点:复制的是引用而不是图片字节(堆增量 <200MB / 画布 base64 总量不增加) — `Test timeout of 30000ms exceeded.` - [A] ④ 画布只加载预览小图;点开 .iwb-imgpreview 才出现原图尺寸 — `Test timeout of 30000ms exceeded.` - [G] ⑤ 多标签:切走再切回不重新请求(打开标签保留 objectURL,S14) — `Error: expect(received).toBeGreaterThanOrEqual(expected)` ### iwb-gallery-insert.spec.js(4/4) - [A] 图库插入:画布里只留引用(不塞整图 base64) — `Test timeout of 30000ms exceeded.` - [A] 图库插入:刷新后双击仍能打开预览(核心回归) — `Test timeout of 30000ms exceeded.` - [A] 图库插入:刷新后内存占用显著低于「插入整图 base64」 — `Test timeout of 30000ms exceeded.` - [A] 图库插入的图片:生成请求里必须是 base64(不是 blob: 临时地址) — `Test timeout of 30000ms exceeded.` ### iwb-private-gate.spec.js(4/4) - [B] 默认隐藏:无开关时右键菜单与设置面板都没有分层入口 — `Error: expect(locator).toBeVisible() failed` - [B] 链接暗号:开启后入口出现且地址栏不留痕,off 可关闭 — `Error: expect(locator).toBeVisible() failed` - [B] 隐藏的是入口不是功能:已存在的分层节点仍照常渲染与可运行 — `Error: expect(locator).toBeVisible() failed` - [B] 文本节点(textout):入口已恢复(曾短暂按私有工具隐藏) — `Error: expect(locator).toBeVisible() failed` ### iwb-canvas-ux.spec.js(3/5) - [A] 2. Shift 点节点体多选:高亮 1→2→1(并出现节点组气泡) — `Test timeout of 30000ms exceeded.` - [A] 3. 预览复制 PNG 源 → 剪贴板为 image/png — `Test timeout of 30000ms exceeded.` - [A] 4. 预览复制 JPEG 源 → 也必须成功且为 image/png — `Test timeout of 30000ms exceeded.` ### iwb-close-flush.spec.js(3/3) - [A] pagehide 兜底:防抖窗口内的编辑立即落盘且刷新后仍在 — `Test timeout of 30000ms exceeded.` - [A] visibilitychange(hidden) 兜底:防抖窗口内的编辑立即落盘且刷新后仍在 — `Test timeout of 30000ms exceeded.` - [A] flush 合成所有打开 session:非激活标签的未保存编辑同样落盘 — `Test timeout of 30000ms exceeded.` ### iwb-crash-log.spec.js(2/3) - [A] 未捕获错误与未处理拒绝:写入环形记录,并在「设置 → 诊断」可见 — `Test timeout of 30000ms exceeded.` - [A] 内存采样:每 15 秒落盘一条,含堆占用与图片字节估算 — `Test timeout of 60000ms exceeded.` ### iwb-download-cors.spec.js(2/3) - [E] 直连失败的图床(403/无 CORS):经图片代理下载成功 — `TimeoutError: page.waitForEvent: Timeout 15000ms exceeded while waiting for event "downloa` - [A] 图库原图是 SVG:大图预览下载名 = image.svg(blob: 也按真实格式命名) — `Test timeout of 30000ms exceeded.` ### iwb-lod.spec.js(2/5) - [G] 缩到 15% 以下才退成纯占位(lite → plain) — `Error: expect(received).toBeLessThan(expected)` - [G] 放大回来后恢复完整节点体(LOD 不是永久的) — `Error: expect(received).toBeGreaterThan(expected)` ### iwb-tooltip-labels.spec.js(2/4) - [A] ② 节点气泡:单选时图标显示 2 字功能名(复制/收藏/删除) — `Test timeout of 30000ms exceeded.` - [A] ③ 禁用按钮也能看到提示(多选 2 个节点时「编组」可用;只选 1 个时不可用) — `Test timeout of 30000ms exceeded.` ### iwb-full-window-resize.spec.js(1/1) - [A] 缩放手柄不可见但可拖,拖动边缘可改尺寸 — `Test timeout of 30000ms exceeded.` ### iwb-history-sweep.spec.js(1/1) - [A] 大量小字符串的快照不得触发引用化空转(旧 bug:100+ 次/秒) — `Test timeout of 30000ms exceeded.` ### iwb-image-original.spec.js(1/2) - [A] 收藏节点组:快照不压缩,实例化回画布后仍是原图 — `Test timeout of 30000ms exceeded.` ### iwb-multi-tab.spec.js(1/2) - [A] 跨标签页:A 页 flush 落盘(rev+1、不广播)后,B 页靠 3 秒轮询看到改动 — `Test timeout of 30000ms exceeded.` ### iwb-plugin-panel-tab-leak.spec.js(1/1) - [A] 插件面板切到图库/提示词库后不残留,切回时只挂载一次 — `Test timeout of 30000ms exceeded.` ### iwb-resume-scope.spec.js(1/2) - [A] 整节点运行中断刷新后仍续跑全部任务(回归) — `Test timeout of 30000ms exceeded.` ### iwb-storage-incremental.spec.js(1/1) - [A] 一次保存只写变更的画板(其余分板键不动) — `Test timeout of 30000ms exceeded.` ### iwb-typing-perf.spec.js(1/1) - [A] 提示词打字:10 个字符只写回很少次数,且内容最终一致 — `Test timeout of 30000ms exceeded.` ## 有效性校验(批量跑 vs 单跑) 仓库自带的 `scripts/e2e-known-red-report.js` 是**逐个 spec 单独跑**的,为排除「一次跑全部 spec 会互相污染、放大红数」的可能,抽查了 `iwb-canvas-ops.spec.js`: | 跑法 | 红数 | |---|---| | 59 spec 一次跑(批量) | 13 / 22 | | 单独跑该 spec | 12 / 22 | 量级一致(差 1 条,属超时抖动),说明本表的红数**不是**跨用例污染造成的放大。 ## 决定性实验:侧栏遮挡 种子节点 `x=120,y=120` 的画布,节点标题栏实际落在 `{x:81,y:27}`——在 318px 左停靠栏与顶栏之下。实验(`test-results` 之外单独跑): ``` 左栏开着:click 节点标题 → locator.click: Timeout 4000ms exceeded;选中数 0 → 0 关掉左栏:click 节点标题 → OK;选中数 0 → 1 ``` ⇒ 大量 `Test timeout` 不是功能坏了,而是**初始视口没有把左右停靠栏/顶栏的占位算进去**,节点被压在界面元素下面,Playwright 等不到可点击状态。 ## 与既有已知红基线对比 `tests/fixtures/e2e-known-red.json`(2026-11-24 / v3.26.64)记录的是 **3 个 spec、16 条**已知红。现状是 **26 个 spec、128 条**,其中 `iwb-stability` 从 5 条涨到 11 条,另外 23 个 spec 从未进过清单。结论:清单已严重过期,`e2e:known-red` 的「无新增红」判断当前不可信。