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\)/); });