F3.1 hotfix: aislar tests API del filesystem WEB
This commit is contained in:
@@ -52,15 +52,3 @@ test('F3.1 fuerza Área → Yacimiento → Instalación → Subinstalación en s
|
||||
assert.match(service, /SUBINSTALACION: 'instalacion'/);
|
||||
assert.match(service, /INVENTORY_SUBINSTALLATION_FAMILY_PARENT_INVALID/);
|
||||
});
|
||||
|
||||
test('F3.1 retira Relevamientos del dashboard y usa alta guiada de cuatro niveles', () => {
|
||||
const layout = readFileSync('../web-v2/src/layout/AppLayout.tsx', 'utf8');
|
||||
const app = readFileSync('../web-v2/src/app/App.tsx', 'utf8');
|
||||
const page = readFileSync('../web-v2/src/pages/InventoryCreatePage.tsx', 'utf8');
|
||||
assert.doesNotMatch(layout, /label: 'Relevamientos'/);
|
||||
assert.match(app, /path="\/relevamiento\/\*" element={<Navigate to="\/inventarios" replace \/>}/);
|
||||
assert.match(app, /path="\/inventarios\/nuevo" element={<InventoryCreatePage \/>}/);
|
||||
for (const kind of ['AREA', 'YACIMIENTO', 'INSTALACION', 'SUBINSTALACION']) assert.match(page, new RegExp(`kind: '${kind}'`));
|
||||
assert.doesNotMatch(page, /kind: 'EQUIPO'/);
|
||||
assert.match(page, /getInventoryFamilyFindings/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user