From 8f2685c1ca14c6843efea821e0c6afb3fc4efec7 Mon Sep 17 00:00:00 2001 From: xuans Date: Sat, 26 Sep 2026 13:44:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3SSH=E5=BC=95=E5=AF=BC?= =?UTF-8?q?=E8=81=94=E5=8A=A8=E6=B5=8B=E8=AF=95=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将回归测试操作顺序调整为先填写服务器配置再打开内嵌引导,并验证默认名称同步及手工名称保留。 --- frontend/src/views/Dashboard/Dashboard.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/Dashboard/Dashboard.test.js b/frontend/src/views/Dashboard/Dashboard.test.js index 0ed0b7b..9f6371e 100644 --- a/frontend/src/views/Dashboard/Dashboard.test.js +++ b/frontend/src/views/Dashboard/Dashboard.test.js @@ -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");