mirror of
https://github.com/ThearchyHelios/AgentLab.git
synced 2026-11-15 00:31:58 +00:00
check-compare 里找不到基准的假答复照服务端的新说法写;触发历史的对比链接去掉没人用的标记
- 「不属于已保存工作流」那一段伪造的 404 说明原先抄的是旧的 NO_BASE_TEXT(更早结束并已封存),改成服务端现在的 「上一次成功的运行……比这次先发起、成功结束并已封存的运行」,假答复和接口约定保持一致 - FireHistory 的 CompareLink 去掉 data-fire-compare-previous:检查只看看得见的字,不靠这个标记
This commit is contained in:
@@ -161,7 +161,6 @@ function CompareLink({ runId, compare }: { runId: string; compare: ScheduleFireC
|
||||
state={via}
|
||||
title={T.compareTitle(compare.summary, previous ? null : shortId(compare.base_run_id))}
|
||||
data-fire-compare={compare.base_run_id}
|
||||
data-fire-compare-previous={previous ? '1' : '0'}
|
||||
className="inline-flex shrink-0 items-center gap-1 rounded-sm text-2xs text-dim outline-none hover:text-fg hover:underline focus-visible:ring-2 focus-visible:ring-[var(--accent)]"
|
||||
>
|
||||
<GitCompareArrows size={11} aria-hidden />
|
||||
|
||||
@@ -1071,7 +1071,7 @@ await section('不属于已保存工作流的运行:对比页的说明前后
|
||||
try {
|
||||
// 只带本次:服务端找不到基准(这种运行没有可比的)
|
||||
const lone = await open(comparePath(T), { base: () => ({ status: 404, json: {
|
||||
detail: '没有找到可以对比的上一次运行:需要同一工作流、同一运行类别(定时任务发起的优先找同一定时任务)、更早结束并已封存的运行',
|
||||
detail: '没有找到可以对比的上一次成功的运行:需要同一工作流、同一运行类别(定时任务发起的优先找同一定时任务)、比这次先发起、成功结束并已封存的运行',
|
||||
code: 'compare_no_base' } }) })
|
||||
await settled(lone.page, 'error')
|
||||
await until(async () => (await lone.page.locator('[data-compare-run="base"]').innerText()).includes('未保存或已删除'), 3000)
|
||||
|
||||
Reference in New Issue
Block a user