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());