test: update luckmail regression coverage

This commit is contained in:
Q3CC
2026-04-14 22:21:08 +08:00
parent 84412c7ea4
commit a070615af4
2 changed files with 27 additions and 2 deletions
@@ -61,6 +61,7 @@ async function testPollFreshVerificationCodeRethrowsStop() {
let stopRequested = false;
const STOP_ERROR_MESSAGE = '流程已被用户停止。';
const HOTMAIL_PROVIDER = 'hotmail-api';
const LUCKMAIL_PROVIDER = 'luckmail-api';
const VERIFICATION_POLL_MAX_ROUNDS = 5;
const logs = [];
let resendCalls = 0;
@@ -71,6 +72,9 @@ function getHotmailVerificationPollConfig() {
async function pollHotmailVerificationCode() {
throw new Error('hotmail path should not run in this test');
}
async function pollLuckmailVerificationCode() {
throw new Error('luckmail path should not run in this test');
}
function getVerificationCodeStateKey(step) {
return step === 4 ? 'lastSignupCode' : 'lastLoginCode';
}
@@ -122,6 +126,7 @@ async function testResolveVerificationStepRethrowsStopFromFreshRequest() {
const api = new Function(`
const STOP_ERROR_MESSAGE = '流程已被用户停止。';
const HOTMAIL_PROVIDER = 'hotmail-api';
const LUCKMAIL_PROVIDER = 'luckmail-api';
const logs = [];
let pollCalls = 0;