feat: 增强错误处理逻辑,添加 Cloudflare 风控和网络超时拦截提示
This commit is contained in:
@@ -51,7 +51,7 @@ function extractFunction(name) {
|
||||
return source.slice(start, end);
|
||||
}
|
||||
|
||||
test('step 7 timeout recoverable result no longer clicks retry before asking background to rerun', async () => {
|
||||
test('step 7 timeout recoverable result 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, 0);
|
||||
assert.equal(snapshot.recoverCalls, 1);
|
||||
assert.equal(result.step6Outcome, 'recoverable');
|
||||
assert.equal(result.reason, 'login_timeout_error_page');
|
||||
assert.equal(result.state, 'login_timeout_error_page');
|
||||
|
||||
Reference in New Issue
Block a user