StreamVault is a TV-first free IPTV player for Android TV built with Kotlin, Jetpack Compose, Room, Hilt, and Media3.
Kotlin iptv-player
test(live): cover epg presentation states
David Nashash7de15c6a4565
diff --git a/docs/superpowers/plans/2026-08-28-live-feature-extraction.md b/docs/superpowers/plans/2026-08-28-live-feature-extraction.mdindex dd47bfff..6be315d7 100644--- a/docs/superpowers/plans/2026-08-28-live-feature-extraction.md+++ b/docs/superpowers/plans/2026-08-28-live-feature-extraction.md@@ -900,6 +900,10 @@ Cover route initialization, horizontal and vertical movement, stable channel/proRun `EpgScreenBehaviorTest`; expected missing-screen failure.+`EpgPresentationBehaviorTest` now provides connected coverage for the+feature-owned Guide hero badge and actionable message-state rendering. The+full ViewModel-driven Guide journey remains open.+- [x] **Step 7: Move EPG presentation and deferred overlay**Move the EPG screen, hero, ViewModel, and deferred player overlay intodiff --git a/feature/live/src/androidTest/java/com/streamvault/feature/live/epg/EpgPresentationBehaviorTest.kt b/feature/live/src/androidTest/java/com/streamvault/feature/live/epg/EpgPresentationBehaviorTest.ktnew file mode 100644index 00000000..1ec91b2a--- /dev/null+++ b/feature/live/src/androidTest/java/com/streamvault/feature/live/epg/EpgPresentationBehaviorTest.kt@@ -0,0 +1,48 @@+package com.streamvault.feature.live.epg++import androidx.compose.ui.test.assertIsDisplayed+import androidx.compose.ui.test.junit4.createComposeRule+import androidx.compose.ui.test.onNodeWithText+import androidx.test.ext.junit.runners.AndroidJUnit4+import com.streamvault.core.ui.theme.StreamVaultTheme+import com.streamvault.feature.live.presentation.epg.LiveGuideHeroBadge+import com.streamvault.feature.live.presentation.epg.LiveGuideMessageState+import org.junit.Rule+import org.junit.Test+import org.junit.runner.RunWith++@RunWith(AndroidJUnit4::class)+class EpgPresentationBehaviorTest {++ @get:Rule+ val composeRule = createComposeRule()++ @Test+ fun guideHeroBadge_rendersLiveStateText() {+ composeRule.setContent {+ StreamVaultTheme {+ LiveGuideHeroBadge(text = "LIVE NOW", highlight = true)+ }+ }++ composeRule.onNodeWithText("LIVE NOW").assertExists().assertIsDisplayed()+ }++ @Test+ fun guideMessageState_rendersActionableEmptyStateCopy() {+ composeRule.setContent {+ StreamVaultTheme {+ LiveGuideMessageState(+ title = "Guide unavailable",+ subtitle = "Try refreshing the schedule.",+ actionLabel = "Refresh",+ onAction = {},+ )+ }+ }++ composeRule.onNodeWithText("Guide unavailable").assertExists().assertIsDisplayed()+ composeRule.onNodeWithText("Try refreshing the schedule.").assertExists().assertIsDisplayed()+ composeRule.onNodeWithText("Refresh").assertExists().assertIsDisplayed()+ }+}