From 6e4bf90e7c6a3e68b908e1f0790bd014e49027ef Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Thu, 7 Mar 2024 15:46:39 +0530 Subject: [PATCH] BackupScreen: Don't hardcode model name for internal storage Signed-off-by: Aayush Gupta --- .../com/stevesoltys/seedvault/e2e/screen/impl/BackupScreen.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/androidTest/java/com/stevesoltys/seedvault/e2e/screen/impl/BackupScreen.kt b/app/src/androidTest/java/com/stevesoltys/seedvault/e2e/screen/impl/BackupScreen.kt index 581512df..ff87985b 100644 --- a/app/src/androidTest/java/com/stevesoltys/seedvault/e2e/screen/impl/BackupScreen.kt +++ b/app/src/androidTest/java/com/stevesoltys/seedvault/e2e/screen/impl/BackupScreen.kt @@ -1,5 +1,6 @@ package com.stevesoltys.seedvault.e2e.screen.impl +import android.os.Build import androidx.test.uiautomator.By import androidx.test.uiautomator.BySelector import com.stevesoltys.seedvault.e2e.screen.UiDeviceScreen @@ -16,7 +17,7 @@ object BackupScreen : UiDeviceScreen() { 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") }