对比页没带运行时的说明把菜单项的两种叫法都写上:上一次没有成功时运行详情的菜单里写的是「与上一次成功的运行对比」,说明只写「与上一次对比」会让人找不到

check-compare 跟着核对两种叫法都在
This commit is contained in:
ThearchyHelios
2026-10-06 17:24:17 +08:00
parent 0f48bd17c4
commit 2a64099cb8
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -1192,7 +1192,8 @@ await section('出错与找不到基准', async () => {
const none = await open('/runs/compare')
await settled(none.page, 'no-target')
check('什么都没带:说明从哪里进来', (await text(none.page, '[data-compare-page]')).includes('与上一次对比'))
const howTo = await text(none.page, '[data-compare-page]')
check('什么都没带:说明从哪里进来,菜单项的两种叫法都写上', howTo.includes(`「${MENU}」`) && howTo.includes(`「${MENU_LAST_OK}」`), howTo)
})
await section('基准运行读不到(删了、链接过期)', async () => {