优化
This commit is contained in:
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user