chore: 清除网页端残留(删 e2e 脚本 + 改文档口径 + 文案去「网页版」)
validate / validate (push) Canceled after 0s

本仓只服务桌面宿主 image-workbench-desktop,与网页端无限画布工具无关。

1) 删除 5 个网页端 e2e 脚本(共 1538 行):batch-export / image-vectorize /
   white-bg-800 / image-annotate 的 e2e-site.mjs,style-source 的 e2e-test-site.mjs。
   它们默认连 test.image-workbench-web.pages.dev、用 iwb_web_* 网页存档造数据、
   断言「线上版本」,与桌面端无关;README 却误称为「桌面客户端端到端」。
   关键断言已由各 harness 覆盖(图层排序 / CSS 注入闸门 / ZIP CRC 校验),
   删除不丢测试能力。npm scripts 与 CI 均未引用这些脚本。

2) 修正 5 份 README:把指向被删脚本的验证章节改写为 harness + 客户端市场确认;
   style-source 的「三层测试」改为两层。

3) browser / album 源码里的「网页版」注释与降级提示文案改为「旧客户端 /
   不支持路径引用的宿主」,保留全部降级逻辑与行为;两处运行时提示只在
   旧客户端或合成测试宿主出现,桌面端正常路径不可达。

纯清理,插件行为零变化,不改版本、不发市场。npm test 全过、语法检查全过,
全仓 Grep 已无「网页版 / 网页端 / image-workbench-web / e2e-site / pages.dev」残留。
This commit is contained in:
qiqi committed 2026-11-25 16:04:09 +08:00
1 parent e614fca7a3
commit e20dda594b
14 files changed
+24 -1538

No files matched your search

+1 -1
View File
@@ -504,7 +504,7 @@ const okInvoke = () => (name) => {
nt.render({ id: 'n2', data: { url: 'https://www.baidu.com/' } }, { onUpdate() {} }, host)
const stage = host.children.find((c) => c.className === 'iwb-cwv-stage')
const empty = stage.children.find((c) => c.className === 'iwb-cwv-empty')
check('网页版节点显示「需要桌面客户端」提示', /桌面客户端/.test(empty._text), empty._text)
check('旧客户端节点显示「需要桌面客户端」提示', /桌面客户端/.test(empty._text), empty._text)
}
// ---------- 旧客户端(有 Tauri、但没有画布 webview 引擎)必须提示升级 ----------