BackupScreen: Don't hardcode model name for internal storage
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
parent
92c87d3b5a
commit
6e4bf90e7c
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
package com.stevesoltys.seedvault.e2e.screen.impl
|
package com.stevesoltys.seedvault.e2e.screen.impl
|
||||||
|
|
||||||
|
import android.os.Build
|
||||||
import androidx.test.uiautomator.By
|
import androidx.test.uiautomator.By
|
||||||
import androidx.test.uiautomator.BySelector
|
import androidx.test.uiautomator.BySelector
|
||||||
import com.stevesoltys.seedvault.e2e.screen.UiDeviceScreen
|
import com.stevesoltys.seedvault.e2e.screen.UiDeviceScreen
|
||||||
|
@ -16,7 +17,7 @@ object BackupScreen : UiDeviceScreen<BackupScreen>() {
|
||||||
|
|
||||||
val backupSwitch = findObject { text("Backup my apps") }
|
val backupSwitch = findObject { text("Backup my apps") }
|
||||||
|
|
||||||
val internalStorageButton = findObject { textContains("Android SDK built for") }
|
val internalStorageButton = findObject { textContains(Build.MODEL) }
|
||||||
|
|
||||||
val useAnywayButton = findObject { text("USE ANYWAY") }
|
val useAnywayButton = findObject { text("USE ANYWAY") }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue