test: isolate overseas PDA operations fixture
This commit is contained in:
@@ -757,6 +757,10 @@ export async function run(context) {
|
||||
// ABE8 producer untouched when the matrix contains both destinations so the
|
||||
// following dispatch module can still observe RECEIVED candidates for ABE4+ABE8.
|
||||
const fixture = fixturesByAuxiliaryCapacity.find((item) => item?.destinationType === 'FBA'
|
||||
&& /-P4-FBA-OPERATIONS(?:-R\d+)?:/.test(String(item?.resourceKey || ''))
|
||||
&& (item?.auxiliaryPallets?.length || 0) > 0 && Array.isArray(item?.inventory)
|
||||
&& item.inventory.reduce((sum, line) => sum + Number(line?.availablePackages || 0), 0) > 3)
|
||||
|| fixturesByAuxiliaryCapacity.find((item) => item?.destinationType === 'FBA'
|
||||
&& item?.fbaWarehouseCode === 'ABE4'
|
||||
&& (item?.auxiliaryPallets?.length || 0) > 0 && Array.isArray(item?.inventory)
|
||||
&& item.inventory.reduce((sum, line) => sum + Number(line?.availablePackages || 0), 0) > 3)
|
||||
|
||||
Reference in New Issue
Block a user