修正SSH引导联动测试流程

将回归测试操作顺序调整为先填写服务器配置再打开内嵌引导,并验证默认名称同步及手工名称保留。
This commit is contained in:
xuans 2026-09-26 13:44:23 +08:00
parent 121be43b1b
commit 8f2685c1ca

View File

@ -154,9 +154,9 @@ test("编辑服务器正确保留已有密码状态,新建和未配置密码
test("SSH引导目标直接跟随服务器配置中的地址和用户", async (t) => {
const { state } = await setup(t, () => verifiedResponse());
state.openServerCreate();
state.openSSHKeyCreate({ embedded: true });
state.serverForm.value.username = "root";
state.serverForm.value.address = "45.136.13.241";
state.openSSHKeyCreate({ embedded: true });
await nextTick();
assert.equal(state.sshKeyCommandUsername.value, "root");