Usa packageName dinamico negli E2E Android per la variante collaudo.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+1
-1
@@ -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()
|
||||||
|
|||||||
+1
-1
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user