From aa587d3c25108da9c8fbc0567cf001eacde907e6 Mon Sep 17 00:00:00 2001 From: xuans Date: Tue, 29 Sep 2026 20:29:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BB=BB=E5=8A=A1=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E5=89=8D=E7=AB=AF=E6=B5=8B=E8=AF=95=E6=96=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 适配证书任务重试按钮的操作渲染测试,覆盖取消与重试互斥显示。 --- frontend/src/views/Dashboard/Dashboard.test.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/Dashboard/Dashboard.test.js b/frontend/src/views/Dashboard/Dashboard.test.js index 9160b6f..25e54d7 100644 --- a/frontend/src/views/Dashboard/Dashboard.test.js +++ b/frontend/src/views/Dashboard/Dashboard.test.js @@ -1061,7 +1061,7 @@ test("dashboardLayout.usesSharedTooltipForUserManagementDescription", async () = }); -test("workflowTasks.renderOnlySupportedCancellation", async () => { +test("workflowTasks.renderOnlySupportedActions", async () => { const { readFile } = await import("node:fs/promises"); const { compileTemplate } = await import("@vue/compiler-sfc"); const { renderToString } = await import("@vue/server-renderer"); @@ -1092,10 +1092,14 @@ test("workflowTasks.renderOnlySupportedCancellation", async () => { runtimeTime: () => "2026-09-26", openTaskDetails: () => {}, cancelTask: () => {}, + retryTask: () => {}, }), })); const canCancel = taskType === "certificate_issue" && ["queued", "running"].includes(status); - assert.equal((html.match(/