This commit is contained in:
2026-10-21 21:30:24 +08:00
parent 234216b3eb
commit 5356a8c898
28 changed files with 1543 additions and 45 deletions
@@ -143,7 +143,7 @@ export async function runQuoteSession(context, { marker = 'FLEET-QUOTE-20261003'
if (!successful(response) || !login?.accessToken || !login?.refreshToken) throw new Error('Independent TEST login failed')
context.token = login.accessToken; context.refreshToken = login.refreshToken
const prepare = prepareCustomer || (await import('./merchant-qualification-fixture.mjs')).run
await context.executeModule('merchant-qualification-fixture', () => prepare(context, { publishEnvironment: false }))
await context.executeModule('merchant-qualification-fixture', () => prepare(context, { publishEnvironment: false, requireDistinctCustomer: false }))
if (context.steps.some(step => !step.passed)) throw new Error('Current-run customer preparation failed; quotes not executed')
await context.executeModule(MODULE, () => run(context))
} catch (error) { fatal = error instanceof Error ? error.message : String(error) }