test(visual): 重录 _visual-tokens 基线(24 例全过);修正上一提交误改的侧栏开关锚点

This commit is contained in:
qiqi authored and qiqi@local committed 2026-11-26 23:53:36 +08:00
1 parent 2cb4353610
commit 5efc251e93
23 files changed
+4 -4

No files matched your search

+4 -4
View File
@@ -97,9 +97,9 @@ async function bootCanvas(page, theme) {
await page.locator('.iwb-home-card:not(.iwb-home-new)').first().dblclick()
await page.waitForSelector('.iwb-canvas:not(.iwb-canvas-hidden)', { timeout: 20000 })
await expect(page.locator('.iwb-node')).toHaveCount(4, { timeout: 15000 })
// 画布基线关掉左栏:打开时它浮在画布之上 318px,而首次进入的自动取景只按窗口宽度居中
// (不避让停靠栏),节点必然被压一半。停靠栏本身由 ④⑤ 两张右栏截图覆盖。
const toggle = page.locator('.iwb-navrail .iwb-nav-item[title="显示 / 隐藏左栏"]').first()
// 画布基线关掉左栏:保持基线口径一致(停靠栏本身由 ④⑤ 两张右栏截图覆盖)。
// 注:v3.26.108 起 doFit 已扣除停靠栏占位,开左栏也不会再把节点压住;此步仅为基线稳定保留。
const toggle = page.locator('.iwb-top-nav-icon[title="显示 / 隐藏左栏"]').first()
await toggle.click()
await expect(page.locator('.iwb-dock[data-side="left"]')).toHaveCount(0)
await page.waitForTimeout(300)
@@ -107,7 +107,7 @@ async function bootCanvas(page, theme) {
// 右栏默认是关的(dock 状态 right.open=false),必须点顶栏开关;开完等面板挂载
async function openRightDock(page) {
await page.locator('.iwb-navrail .iwb-nav-item[title="显示 / 隐藏右栏"]').first().click()
await page.locator('.iwb-top-nav-icon[title="显示 / 隐藏右栏"]').first().click()
await expect(page.locator('.iwb-dock[data-side="right"]')).toBeVisible({ timeout: 15000 })
await page.waitForTimeout(400) // 插件面板挂载是异步的(pluginMount effect)
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 85 KiB