diff --git a/api-v3/test/unit/f6-4-android-modern-field.test.ts b/api-v3/test/unit/f6-4-android-modern-field.test.ts index 38e48cc..d173ea1 100644 --- a/api-v3/test/unit/f6-4-android-modern-field.test.ts +++ b/api-v3/test/unit/f6-4-android-modern-field.test.ts @@ -21,13 +21,18 @@ test('F6.4 Android Installation picker searches live and selects a concrete pare assert.match(screen, /model\.loadFieldTypes\(item\.id\)/); }); -test('F6.4 Android field shell uses the modern theme and workspace', () => { +test('F8 Android field shell uses the shared theme and the inspection-first workspace', () => { const gate = repoFile('android-app/app/src/main/java/com/korexlabs/dhinspeccion/ui/LoginGate.kt'); const theme = repoFile('android-app/app/src/main/java/com/korexlabs/dhinspeccion/ui/DhTheme.kt'); + const f8 = repoFile('android-app/app/src/main/java/com/korexlabs/dhinspeccion/ui/F8VisitRoot.kt'); assert.match(gate, /DhTheme \{/); - assert.match(gate, /model\.visit != null -> ModernVisitRoot\(model\)/); + assert.match(gate, /model\.visit != null -> F8VisitRoot\(model\)/); assert.match(theme, /RoundedCornerShape\(16\.dp\)/); + assert.match(f8, /Recorrido sugerido/); + assert.match(f8, /Nueva Acta/); + assert.match(f8, /Crear hallazgo/); + assert.doesNotMatch(f8, /Inventario de campo/); }); test('F6.4 Android Act list uses a mobile read model independent from office reports', () => { @@ -40,4 +45,4 @@ test('F6.4 Android Act list uses a mobile read model independent from office rep assert.match(service, /FROM inspection_acts act/); assert.doesNotMatch(service, /inspection_reports/); assert.doesNotMatch(service, /inspection_document/); -}); +}); \ No newline at end of file