From b6d10339f625b4f22382970d3e7647a7cd2055a3 Mon Sep 17 00:00:00 2001 From: qiqi Date: Mon, 9 Nov 2026 23:47:46 +0800 Subject: [PATCH] =?UTF-8?q?test(image-vectorize):=20=E7=9C=9F=E7=AB=99=20e?= =?UTF-8?q?2e=20=E6=96=AD=E8=A8=80=E9=A1=B6=E6=A0=8F=E9=A1=BA=E5=BA=8F?= =?UTF-8?q?=E4=B8=8E=E7=BB=9F=E4=B8=80=E9=85=8D=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- image-vectorize/tools/e2e-site.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/image-vectorize/tools/e2e-site.mjs b/image-vectorize/tools/e2e-site.mjs index dc1fac0..bba42eb 100644 --- a/image-vectorize/tools/e2e-site.mjs +++ b/image-vectorize/tools/e2e-site.mjs @@ -139,6 +139,15 @@ check('样式注入生效(CSP unsafe-inline)', await page.evaluate(() => { return Boolean(s && s.textContent.indexOf('.vz-') >= 0) })) +// 用户 2026-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 +})) + // ---------- 5) 真站 CSP 下引擎能跑 ---------- const paths = await poll(async () => { // 统计项是「元素」,合并模式下会带后缀「(N 孤岛合并)」,只取前面的数字