更新服务器 SSH 密钥页面测试
同步页面标题和服务器专属 SSH 命令的测试断言,保持前端全量测试覆盖当前需求。
This commit is contained in:
parent
2e2e804a49
commit
de1664f70b
@ -97,7 +97,7 @@ test("完整页面逐个渲染六个板块,每次只有一个内容标题", as
|
||||
activity: "运行概览",
|
||||
domains: "托管域名",
|
||||
servers: "部署服务器",
|
||||
keys: "SSH 私钥",
|
||||
keys: "服务器 SSH 密钥",
|
||||
"dns-accounts": "DNS 账户管理",
|
||||
users: "用户管理",
|
||||
};
|
||||
|
||||
@ -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\)/);
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user