feat: 更新步骤7和步骤8的错误处理逻辑,确保在登录超时报错时不再点击重试,直接回到步骤7重跑

This commit is contained in:
QLHazyCoder
2026-04-18 01:23:47 +08:00
parent 466011d4e5
commit 79a54c78f0
7 changed files with 183 additions and 25 deletions
+2 -2
View File
@@ -51,7 +51,7 @@ function extractFunction(name) {
return source.slice(start, end);
}
test('step 6 timeout recoverable result clicks retry before asking background to rerun', async () => {
test('step 7 timeout recoverable result no longer clicks retry before asking background to rerun', async () => {
const api = new Function(`
const logs = [];
let recoverCalls = 0;
@@ -97,7 +97,7 @@ return {
const result = await api.run();
const snapshot = api.snapshot();
assert.equal(snapshot.recoverCalls, 1);
assert.equal(snapshot.recoverCalls, 0);
assert.equal(result.step6Outcome, 'recoverable');
assert.equal(result.reason, 'login_timeout_error_page');
assert.equal(result.state, 'login_timeout_error_page');