diff --git a/api-v3/test/unit/f6-1-operational-context-consistency.test.ts b/api-v3/test/unit/f6-1-operational-context-consistency.test.ts index ea6900a..0349fc4 100644 --- a/api-v3/test/unit/f6-1-operational-context-consistency.test.ts +++ b/api-v3/test/unit/f6-1-operational-context-consistency.test.ts @@ -78,11 +78,13 @@ test('F6.1 historical operational lists read Company and Area from the parent In test('F6.1 WEB Inventory searches use physical Area and never the operator snapshot filter', () => { const inspectionEditor = source('../web-v2/src/pages/InspectionVisitEditorF4Page.tsx'); const fieldDiscoveries = source('../web-v2/src/pages/FieldDiscoveriesPage.tsx'); + const inventoryMerge = source('../web-v2/src/lib/inventoryMergeApi.ts'); - for (const page of [inspectionEditor, fieldDiscoveries]) { - assert.match(page, /listAssets\(\{[\s\S]{0,250}operationalAreaId:/); - assert.doesNotMatch(page, /listAssets\(\{[\s\S]{0,250}operatorCompanyId:/); + for (const page of [inspectionEditor, fieldDiscoveries, inventoryMerge]) { + assert.match(page, /listAssets\(\{[\s\S]{0,300}operationalAreaId:/); + assert.doesNotMatch(page, /listAssets\(\{[\s\S]{0,300}operatorCompanyId:/); } + assert.doesNotMatch(inventoryMerge, /source\.operatorCompany/); }); test('F6.1 WEB derives the creation snapshot from the active Area operator and removes it from Inventory edits', () => {