From de1664f70b770be735ae652ec2849d6751f11412 Mon Sep 17 00:00:00 2001 From: xuans Date: Sun, 27 Sep 2026 15:24:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=20SSH=20=E5=AF=86=E9=92=A5=E9=A1=B5=E9=9D=A2=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 同步页面标题和服务器专属 SSH 命令的测试断言,保持前端全量测试覆盖当前需求。 --- frontend/src/views/Dashboard/Dashboard.test.js | 2 +- frontend/src/views/Dashboard/DeploymentResult.test.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/Dashboard/Dashboard.test.js b/frontend/src/views/Dashboard/Dashboard.test.js index cb0e045..370941d 100644 --- a/frontend/src/views/Dashboard/Dashboard.test.js +++ b/frontend/src/views/Dashboard/Dashboard.test.js @@ -97,7 +97,7 @@ test("完整页面逐个渲染六个板块,每次只有一个内容标题", as activity: "运行概览", domains: "托管域名", servers: "部署服务器", - keys: "SSH 私钥", + keys: "服务器 SSH 密钥", "dns-accounts": "DNS 账户管理", users: "用户管理", }; diff --git a/frontend/src/views/Dashboard/DeploymentResult.test.js b/frontend/src/views/Dashboard/DeploymentResult.test.js index 1337598..4e0f695 100644 --- a/frontend/src/views/Dashboard/DeploymentResult.test.js +++ b/frontend/src/views/Dashboard/DeploymentResult.test.js @@ -82,5 +82,6 @@ test("部署结果组件可编译且认证提示绑定真实配置", async () => assert.match(source, /role="dialog"/); const dashboard = await readFile(new URL("./Dashboard.vue", import.meta.url), "utf8"); assert.match(dashboard, /serverAuthLabel\(item\)/); - assert.match(dashboard, /item.auth_method === 'private_key' && item.private_key_ref/); + assert.match(dashboard, /serverSSHKeyStatusLabel\(item\)/); + assert.match(dashboard, /serverSSHCommand\(item\)/); });