From 13c9848fb8be290da3a0c0545c066898b0e3a452 Mon Sep 17 00:00:00 2001 From: song Date: Fri, 16 Oct 2026 01:05:38 +0800 Subject: [PATCH] test(dashboard): follow the renamed delivery recheck control in team smokes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #6473 renamed the evidence region's control from "重新读取证据" to "重新检查交付" (it now runs the configured delivery checks), but the four packaged team smokes still looked for the old label. The build lane has failed at team-evidence-return-smoke.mjs:67 on every PR since, waiting for a button that no longer exists; #6473 itself merged with that lane red. Align the six locators with the shipped label. No product change. Co-Authored-By: Claude Fable 5.1 Signed-off-by: song --- .../dashboard/smoke/team-evidence-return-smoke.mjs | 6 +++--- .../dashboard/smoke/team-feedback-recovery-smoke.mjs | 2 +- .../dashboard/smoke/team-result-use-recovery-smoke.mjs | 2 +- .../dashboard/smoke/team-task-revalidation-smoke.mjs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/presentation/dashboard/smoke/team-evidence-return-smoke.mjs b/apps/presentation/dashboard/smoke/team-evidence-return-smoke.mjs index 83bb04e95f..d182617622 100644 --- a/apps/presentation/dashboard/smoke/team-evidence-return-smoke.mjs +++ b/apps/presentation/dashboard/smoke/team-evidence-return-smoke.mjs @@ -63,7 +63,7 @@ try { : route.fulfill({json: {...legacyReadback, validation}}); }; await page.route("**/api/chat/sessions/*/loopx", checkedRead); - const recheck = evidence.getByRole("button", {name: "重新读取证据", exact: true}); + const recheck = evidence.getByRole("button", {name: "重新检查交付", exact: true}); await recheck.click(); await original().waitFor(); await evidence.getByText("本次验收依据", {exact: true}).click(); @@ -229,7 +229,7 @@ try { await adoptionGap.waitFor({timeout: 3000}); assert.equal(await evidence.getByRole("button", {name: "阅读后续结果", exact: true}).count(), 0); assert.equal(await evidence.getByText("已记录采用 · 后续结果验收有效", {exact: true}).count(), 0); - await evidence.getByRole("button", {name: "重新读取证据", exact: true}).click(); + await evidence.getByRole("button", {name: "重新检查交付", exact: true}).click(); await original().waitFor(); await evidence.getByRole("button", {name: "核验关联执行", exact: true}).click(); await adoptionGap.waitFor({timeout: 3000}); @@ -249,7 +249,7 @@ try { assert.equal(await original().count(), 0, "Core loss clears the surrounding report, not only its trace"); assert.equal(await evidence.getByText("本次验收依据", {exact: true}).count(), 0); await page.unroute("**/api/chat/sessions/*/loopx", unavailableCore); - await evidence.getByRole("button", {name: "重新读取证据", exact: true}).click(); + await evidence.getByRole("button", {name: "重新检查交付", exact: true}).click(); await original().waitFor(); await evidence.getByRole("button", {name: "核验关联执行", exact: true}).click(); await evidence.getByRole("button", {name: "阅读回应与证据", exact: true}).click(); diff --git a/apps/presentation/dashboard/smoke/team-feedback-recovery-smoke.mjs b/apps/presentation/dashboard/smoke/team-feedback-recovery-smoke.mjs index bff0ecfc6e..dbf9f60d06 100644 --- a/apps/presentation/dashboard/smoke/team-feedback-recovery-smoke.mjs +++ b/apps/presentation/dashboard/smoke/team-feedback-recovery-smoke.mjs @@ -105,7 +105,7 @@ try { assert.equal(await evidence.getByText("已进入协调员收件箱,等待读取", {exact: true}).count(), 1, "An inbox receipt is presented as awaiting read, never as applied feedback"); await page.unroute("**/api/chat/sessions/*/loopx", unavailableEvidence); - await evidence.getByRole("button", {name: "重新读取证据", exact: true}).click(); + await evidence.getByRole("button", {name: "重新检查交付", exact: true}).click(); await evidence.getByLabel("证据内容: report.json").waitFor(); await mkdir(outputDir, {recursive: true}); await feedback.scrollIntoViewIfNeeded(); diff --git a/apps/presentation/dashboard/smoke/team-result-use-recovery-smoke.mjs b/apps/presentation/dashboard/smoke/team-result-use-recovery-smoke.mjs index e8e9e8f4f2..64598aeb1c 100644 --- a/apps/presentation/dashboard/smoke/team-result-use-recovery-smoke.mjs +++ b/apps/presentation/dashboard/smoke/team-result-use-recovery-smoke.mjs @@ -62,7 +62,7 @@ try { const evidence = dialog.getByRole("region", {name: "执行证据"}); await evidence.getByLabel("证据内容: output.json").waitFor(); assert.deepEqual((await command("withdraw")).host_calls, ["1", "1", "1"]); - const recheck = evidence.getByRole("button", {name: "重新读取证据", exact: true}); + const recheck = evidence.getByRole("button", {name: "重新检查交付", exact: true}); await recheck.click(); await evidence.getByText("接收方输入不可用", {exact: true}).waitFor(); await evidence.getByRole("button", {name: "查看阻断来源", exact: true}).waitFor(); diff --git a/apps/presentation/dashboard/smoke/team-task-revalidation-smoke.mjs b/apps/presentation/dashboard/smoke/team-task-revalidation-smoke.mjs index 783a19ee22..5a02fb2d75 100644 --- a/apps/presentation/dashboard/smoke/team-task-revalidation-smoke.mjs +++ b/apps/presentation/dashboard/smoke/team-task-revalidation-smoke.mjs @@ -50,7 +50,7 @@ try { const dialog = page.getByRole("dialog", {name: "团队执行情况"}); await dialog.getByRole("button", {name: "查看证据与反馈", exact: true}).first().click(); const evidence = dialog.getByRole("region", {name: "执行证据"}); - const recheck = evidence.getByRole("button", {name: "重新读取证据", exact: true}); + const recheck = evidence.getByRole("button", {name: "重新检查交付", exact: true}); await mkdir(outputDir, {recursive: true}); await page.setViewportSize({width: 390, height: 844}); const failure = evidence.getByRole("region", {name: "原任务验收失败"});