test(overseas): retain marker merchant fixture
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user