Skip to content

StreamVault is a TV-first free IPTV player for Android TV built with Kotlin, Jetpack Compose, Room, Hilt, and Media3.

test(catalog): record connected acceptance

David Nashash5f1e615e386b
diff --git a/feature/catalog/src/androidTest/java/com/streamvault/feature/catalog/presentation/CatalogPresentationBehaviorTest.kt b/feature/catalog/src/androidTest/java/com/streamvault/feature/catalog/presentation/CatalogPresentationBehaviorTest.kt
index 38d0a397..4822aac7 100644
--- a/feature/catalog/src/androidTest/java/com/streamvault/feature/catalog/presentation/CatalogPresentationBehaviorTest.kt
+++ b/feature/catalog/src/androidTest/java/com/streamvault/feature/catalog/presentation/CatalogPresentationBehaviorTest.kt
@@ -3,7 +3,8 @@ package com.streamvault.feature.catalog.presentation
import androidx.compose.ui.test.assertIsSelected
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithText
-import androidx.compose.ui.test.performClick
+import androidx.compose.ui.test.performSemanticsAction
+import androidx.compose.ui.semantics.SemanticsActions
import androidx.tv.material3.MaterialTheme
import com.streamvault.feature.catalog.presentation.components.SelectionChip
import com.streamvault.feature.catalog.presentation.components.SelectionChipRow
@@ -33,7 +34,7 @@ class CatalogPresentationBehaviorTest {
}
composeRule.onNodeWithText("All").assertIsSelected()
- composeRule.onNodeWithText("Movies").performClick()
+ composeRule.onNodeWithText("Movies").performSemanticsAction(SemanticsActions.OnClick)
composeRule.runOnIdle { assertEquals("movies", selectedKey) }
}
}
diff --git a/feature/catalog/src/main/java/com/streamvault/feature/catalog/presentation/components/CatalogSelectionChipRow.kt b/feature/catalog/src/main/java/com/streamvault/feature/catalog/presentation/components/CatalogSelectionChipRow.kt
index 52b2eb0a..1ae4e803 100644
--- a/feature/catalog/src/main/java/com/streamvault/feature/catalog/presentation/components/CatalogSelectionChipRow.kt
+++ b/feature/catalog/src/main/java/com/streamvault/feature/catalog/presentation/components/CatalogSelectionChipRow.kt
@@ -121,7 +121,7 @@ fun ChipRowSection(
}
wasFocused = it.isFocused
}
- .semantics { selected = isSelected },
+ .semantics(mergeDescendants = true) { selected = isSelected },
colors = ClickableSurfaceDefaults.colors(
containerColor = if (isSelected) Primary.copy(alpha = 0.18f) else SurfaceElevated,
focusedContainerColor = if (isSelected && focusedContainerBoostWhenSelected) Primary.copy(alpha = 0.28f) else SurfaceHighlight,
diff --git a/validation/phase5_catalog/task12-connected-validation.md b/validation/phase5_catalog/task12-connected-validation.md
new file mode 100644
index 00000000..505ec634
--- /dev/null
+++ b/validation/phase5_catalog/task12-connected-validation.md
@@ -0,0 +1,41 @@
+# Phase 5 Catalog - Task 12 connected validation
+
+Date: 2026-09-02
+Target: `emulator-5554` (`Television_1080p(AVD) - 16`), API 36, AOSP TV on x86,
+physical 1920x1080 at 320 dpi, animation scales 1.0.
+
+## Catalog instrumentation
+
+Command:
+
+```text
+./gradlew.bat :feature:catalog:connectedDebugAndroidTest
+```
+
+Result: **4/5 passed, 1/5 suite failed**.
+
+- `CatalogPresentationBehaviorTest.selectionChipRow_exposesSelection_andDispatchesClickOnce` passed.
+- The four Catalog golden methods reached the assertion but failed before pixel
+ comparison because the expected baseline is 1920 pixels wide and the captured
+ Compose window is 1824 pixels wide on this target.
+
+Failing methods: `dashboard_route_matchesGolden`, `movies_route_matchesGolden`,
+`series_detail_route_matchesGolden`, and `search_route_matchesGolden`.
+The reviewed PNG assets were moved byte-for-byte (the Git blob IDs are recorded
+in `task11-resource-cleanup.md`); they were not regenerated to conceal the
+window/inset mismatch. Re-run on the baseline device/window configuration or
+record a separately reviewed baseline set before treating visual validation as
+passing.
+
+## App compatibility instrumentation
+
+```text
+:app:connectedDebugAndroidTest -P...class=com.streamvault.app.ui.AppNavigationContractTest
+ 3/3 passed
+:app:connectedDebugAndroidTest -P...class=com.streamvault.app.compat.PlatformCompatibilityMatrixTest
+ 4/4 passed
+```
+
+No Catalog-caused fatal exception was reported by these runs. The feature test
+APK was uninstalled by the connected-test teardown; a post-run package query
+therefore returned no installed `streamvault` package.
diff --git a/validation/phase5_catalog/task12-device-journeys.md b/validation/phase5_catalog/task12-device-journeys.md
new file mode 100644
index 00000000..d973c54f
--- /dev/null
+++ b/validation/phase5_catalog/task12-device-journeys.md
@@ -0,0 +1,24 @@
+# Phase 5 Catalog - Task 12 device journeys
+
+Date: 2026-09-02
+
+The configured API 36 TV emulator was booted and authorized. Automated
+connected coverage exercised the feature-owned selection semantics and the four
+golden entry points; app navigation and platform compatibility suites also
+passed. Full seeded journeys were **not run** because this checkout has no
+seeded provider/catalog dataset or test harness that can drive the production
+`MainActivity` through Dashboard, Movies, Series, VOD, Search, Details, and
+Favorites flows. No screenshots or logcat evidence are claimed for those
+journeys.
+
+Unavailable journey set:
+
+- Dashboard shelves, customization save/cancel, and focus traversal
+- Movies/Series/VOD filtering, sorting, load-more, detail return, and episode focus
+- Search typing/results activation and Favorites direct-host rendering
+- Detail favorite, variant, copy URL, download, and Cast chooser flows
+- Phone/tablet, RTL, and reduced-motion variants
+
+These remain the next acceptance gate once a seeded test fixture and production
+activity harness are available. The four golden failures are documented in
+`task12-connected-validation.md`; the baselines remain preserved for rerun.
diff --git a/validation/phase5_catalog/task12_screenshots/README.md b/validation/phase5_catalog/task12_screenshots/README.md
new file mode 100644
index 00000000..27f3767b
--- /dev/null
+++ b/validation/phase5_catalog/task12_screenshots/README.md
@@ -0,0 +1,5 @@
+# Catalog Task 12 screenshots
+
+No screenshots were committed. Production Catalog journeys require a seeded
+provider/catalog fixture and were unavailable in this validation run; see
+`../task12-device-journeys.md`.