巡检 10 个插件的 tools/harness.mjs:4 个全绿,6 个长期假红(说明没人跑)。逐条判定后修复 —— 全部是「测试钉死了当时的版本/布局/设计」,不是插件行为回归: - album:删掉写死的 1.1.2(改为钉 package.json == manifest.version);addPaths 涨到 36 行、 900 字符窗口够不着;缩略图写入形态已变成 ctx.files.put(thumbNameOf(key, ext), url)。 - gallery / promptlib:同样去掉写死版本,改钉两处一致。 - style-source:要求 chips「必须一行」(当时 9~10 个标签);标签涨到 13 个后必然换行。 真实意图是「不溢出右侧」,改钉 outside===0 且行数 ≤3。 - image-vectorize:11-19 起「取消」改名「关闭」并用主色区分,「四颗同色」规则已作废; 改钉「顺序不变 + 前三颗同色 + 关闭不同色」。 - sticky:便利贴改成纯节点类型后不再注册面板,harness 仍要求 panels 并在 panelApi.mount 处崩; 改为断言「不注册面板 / 插件自身不建节点」。 复跑:10 个 harness 全部通过(album / batch-export / browser / gallery / image-annotate / image-vectorize / promptlib / sticky / style-source / white-bg-800)。
This commit is contained in:
1 parent
e2982e3d12
commit
4f7bb25592
6 files changed
+36
-26
No files matched your search
@@ -155,11 +155,14 @@ check('模态打开:预览区 + 参数面板 + 四个动作按钮齐全', awai
|
||||
|
||||
// 用户 2026-11-09:顶栏「取消」与「保存为节点」互换(主操作在左、取消在最右),
|
||||
// 且不再给主操作上绿色 —— 四颗按钮用同一套描边配色。
|
||||
check('顶栏顺序:保存为节点 → 复制 → 下载 → 取消,且四颗同色', await page.evaluate(() => {
|
||||
// 2026-11-19 起「取消」改名「关闭」并按主色填充(与产出操作区分、防误点),
|
||||
// 「四颗同色」是 11-09 的旧规则、已被取代。现在钉的是:顺序不变 + 前三颗同色 + 关闭明显不同色。
|
||||
check('顶栏顺序:保存为节点 → 复制 → 下载 → 关闭,且关闭用主色区分', await page.evaluate(() => {
|
||||
const btns = [...document.querySelectorAll('.vz-header .vz-btn')]
|
||||
if (btns.map((b) => b.dataset.act).join(',') !== 'save,copy,svg,cancel') return false
|
||||
const colors = new Set(btns.map((b) => getComputedStyle(b).backgroundColor + '|' + getComputedStyle(b).color))
|
||||
return colors.size === 1
|
||||
const tone = (b) => getComputedStyle(b).backgroundColor + '|' + getComputedStyle(b).color
|
||||
const head = new Set(btns.slice(0, 3).map(tone))
|
||||
return head.size === 1 && tone(btns[3]) !== [...head][0]
|
||||
}))
|
||||
|
||||
// 高级参数默认展开:用户 2026-11-05 明确要求「不用隐藏」(低频项也一眼能看到)
|
||||
|
||||
Reference in new issue
Block a user