From ba01bc844ed910e0bc8a975ebc54ed8d14dec5d9 Mon Sep 17 00:00:00 2001 From: enlineawork Date: Fri, 11 Sep 2026 22:12:28 -0300 Subject: [PATCH] test(f7): cover simple inventory detail experience --- ...-1-clean-manual-inventory-contract.test.ts | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/api-v3/test/unit/f5-1-clean-manual-inventory-contract.test.ts b/api-v3/test/unit/f5-1-clean-manual-inventory-contract.test.ts index 49cc0b3..43adf9b 100644 --- a/api-v3/test/unit/f5-1-clean-manual-inventory-contract.test.ts +++ b/api-v3/test/unit/f5-1-clean-manual-inventory-contract.test.ts @@ -98,3 +98,28 @@ test('F7 Web creation keeps the fixed hierarchy and asks only the required simpl assert.doesNotMatch(createPage, /Tipo de concesión/); assert.match(configPage, /Departamento → Área → Yacimiento → Instalación → Subinstalación/); }); + +test('F7 canonical detail uses one short everyday profile and keeps advanced administration separate', () => { + const detailRoute = source('../web-v2/src/pages/InventoryDetailPage.tsx'); + const detail = source('../web-v2/src/pages/SimpleInventoryDetailPage.tsx'); + + assert.match(detailRoute, /isSimpleInventoryAsset\(asset\) && !advanced/); + assert.match(detailRoute, /ResumenActividadUbicaciónFotosCambios