mirror of
https://github.com/ThearchyHelios/AgentLab.git
synced 2026-11-18 15:31:59 +00:00
运行对比页复查修正:互换时不重取运行列表,拆分句的总变化为 0 时写「0」,展开控件只指向在场的明细
- 互换、换了本次之后,新的运行记录还在路上时沿用上一次知道的工作流:下拉不再先退回「正在读取」、再把同一工作流 的运行列表取一遍(能比的两次运行本来就是同一个工作流);check-compare 补这一项 - 口径变了、数值却碰巧没变(两效应正好抵消)时服务端不给变化量的写法,拆分那句话的总变化写「0」,不再写成 「两者之和等于总变化 无变化」 - 指标展开、查看 SQL 的按钮只在明细展开时才带 aria-controls,不指向页面上不存在的元素;参数前后两个值之间的箭头 对读屏补一句「改为」
This commit is contained in:
@@ -558,6 +558,8 @@ await section('换基准、互换', async () => {
|
||||
check('换基准:重新请求对比', compareHits(log, T, B2) === 1)
|
||||
check('换基准:页面换成新的一份', (await texts(page, '[data-compare-notes] li')).includes(NOTE_B2))
|
||||
check('换基准:基准卡跟着换', (await text(page, '[data-compare-run="base"]')).includes('9/21'))
|
||||
const lists = () => log.filter((k) => k.startsWith('GET /api/runs?') && k.includes(`workflow_id=${WF}`)).length
|
||||
const listsBefore = lists()
|
||||
await page.locator('button[data-compare-swap]').click()
|
||||
await until(async () => new URL(page.url()).searchParams.get('target') === B2)
|
||||
await until(async () => compareHits(log, B2, T) === 1)
|
||||
@@ -566,6 +568,9 @@ await section('换基准、互换', async () => {
|
||||
check('互换:重新请求对比', compareHits(log, B2, T) === 1)
|
||||
await settled(page)
|
||||
check('互换:两张卡跟着对调', (await page.locator('[data-compare-run="target"] a[data-compare-run-link]').getAttribute('href')) === `/runs/${B2}`)
|
||||
check('互换:同一工作流的运行列表不重取,下拉照常可用', lists() === listsBefore
|
||||
&& await page.locator('select[data-compare-base-picker]').isEnabled() && await page.locator('select[data-compare-base-picker]').inputValue() === T,
|
||||
`${listsBefore} → ${lists()}`)
|
||||
})
|
||||
|
||||
await section('过时的答复不盖掉新的', async () => {
|
||||
|
||||
Reference in New Issue
Block a user