From 515273dd92c45987d88b64fbdc02c16221aacbdd Mon Sep 17 00:00:00 2001 From: mzl92 Date: Thu, 27 Aug 2026 14:59:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=94=AF=E6=8C=81=E5=9B=9E?= =?UTF-8?q?=E8=BD=A6=E6=8F=90=E4=BA=A4(=E8=A1=A8=E5=8D=95=E5=8C=96);=20?= =?UTF-8?q?=E5=86=92=E7=83=9F=E6=94=B9=E7=94=A8=E5=9B=9E=E8=BD=A6=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 8 +++++--- scripts/smoke.js | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/public/index.html b/public/index.html index a5140bf..fcb6f04 100644 --- a/public/index.html +++ b/public/index.html @@ -70,9 +70,11 @@ tr:hover td{background:#f8fafc;cursor:pointer}

登录

- - - +
+ + + +
diff --git a/scripts/smoke.js b/scripts/smoke.js index 119d600..139b8bb 100644 --- a/scripts/smoke.js +++ b/scripts/smoke.js @@ -30,7 +30,7 @@ const sleep = (ms) => new Promise(r => setTimeout(r, ms)); const SP = process.env.SMOKE_PASS || 'test123456'; await $('#f_user').fill(SU); await $('#f_pass').fill(SP); - await $('#loginBtn').click(); + await p.keyboard.press('Enter'); // 回车登录路径 await p.waitForNavigation({ waitUntil: 'networkidle', timeout: 8000 }).catch(() => {}); await sleep(800); ok(boot.needsInit ? '注册超管成功' : '测试账号登录成功', await $('#main').isVisible());