From 4d7f5f7df400bee69b37d8815df3466a6fa252ef Mon Sep 17 00:00:00 2001 From: enlineawork Date: Fri, 11 Sep 2026 01:16:39 -0300 Subject: [PATCH] test: resolve planning Company from Yacimientos --- api-v3/test/unit/f6-1-operator-cancellation-ux.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api-v3/test/unit/f6-1-operator-cancellation-ux.test.ts b/api-v3/test/unit/f6-1-operator-cancellation-ux.test.ts index 42f2f9f..a8a5774 100644 --- a/api-v3/test/unit/f6-1-operator-cancellation-ux.test.ts +++ b/api-v3/test/unit/f6-1-operator-cancellation-ux.test.ts @@ -7,7 +7,7 @@ function source(path: string): string { return readFileSync(resolve(process.cwd(), path), 'utf8'); } -test('F6.1 planning preloads the local start time and resolves the Area operator immediately', () => { +test('F6.1 planning preloads the local start time and resolves Companies projected by Yacimientos', () => { const page = source('../web-v2/src/pages/InspectionVisitCreateF61Page.tsx'); const hierarchy = source('src/inspection-visits/inspection-planning-hierarchy.service.ts'); @@ -17,9 +17,9 @@ test('F6.1 planning preloads the local start time and resolves the Area operator assert.match(page, /response\.data\.length === 1/); assert.match(page, /setOperatorId\(response\.data\[0\]\.id\)/); assert.match(page, /Sin Operadora vigente para esa fecha/); - assert.match(hierarchy, /relation\.relation_role='OPERATOR'/); - assert.match(hierarchy, /relation\.valid_from <= \$2::timestamptz/); - assert.match(hierarchy, /relation\.valid_until IS NULL OR relation\.valid_until > \$2::timestamptz/); + assert.match(hierarchy, /FROM assets yacimiento/); + assert.match(hierarchy, /yacimiento\.operator_company_id/); + assert.match(hierarchy, /SELECT DISTINCT company\.id/); }); test('F6.1 WEB cancellation requires an explicit audited reason and is available while in progress', () => {