Usa packageName dinamico negli E2E Android per la variante collaudo.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-26 10:22:20 +02:00
co-authored by Cursor
parent 9d8b35c06c
commit 35dfa923e3
2 changed files with 2 additions and 2 deletions
@@ -22,8 +22,8 @@ import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class) @RunWith(AndroidJUnit4::class)
class E2EWizardFlowTest { class E2EWizardFlowTest {
private lateinit var device: UiDevice private lateinit var device: UiDevice
private val pkg = "com.matchlivetv.match_live_tv"
private val ctx by lazy { InstrumentationRegistry.getInstrumentation().targetContext } private val ctx by lazy { InstrumentationRegistry.getInstrumentation().targetContext }
private val pkg by lazy { ctx.packageName }
private fun s(id: Int): String = ctx.getString(id) private fun s(id: Int): String = ctx.getString(id)
private fun su(id: Int): String = s(id).uppercase() private fun su(id: Int): String = s(id).uppercase()
@@ -20,7 +20,7 @@ import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class) @RunWith(AndroidJUnit4::class)
class LocalAdaptiveBitrateUiTest { class LocalAdaptiveBitrateUiTest {
private lateinit var device: UiDevice private lateinit var device: UiDevice
private val pkg = "com.matchlivetv.match_live_tv" private val pkg by lazy { InstrumentationRegistry.getInstrumentation().targetContext.packageName }
@Before @Before
fun setUp() { fun setUp() {