test(overseas): retain marker merchant fixture

This commit is contained in:
2026-09-07 21:26:03 +08:00
parent ac18f69ec5
commit f018ca85a9
2 changed files with 20 additions and 1 deletions
+8 -1
View File
@@ -328,7 +328,14 @@ export function parseArguments(argv) {
const modules = normalizeModuleOrder(requestedModules)
const merchantUsername = values.get('merchant-username') || process.env.MERCHANT_TEST_USERNAME || ''
const merchantPassword = values.get('merchant-password') || process.env.MERCHANT_TEST_PASSWORD || ''
if (merchantUsername && merchantPassword && !modules.includes('phase4-overseas-business')) {
const requiresMarkerOwnedMerchantFixture = [
'phase4-overseas-business',
'phase4-overseas-client-services',
'phase5-overseas-fulfillment',
'phase4-overseas-finance-cross-region',
'phase4-overseas-wallet-and-pallet-cost',
].some((module) => modules.includes(module))
if (merchantUsername && merchantPassword && !requiresMarkerOwnedMerchantFixture) {
const fixtureIndex = modules.indexOf('merchant-qualification-fixture')
if (fixtureIndex >= 0) modules.splice(fixtureIndex, 1)
}