From 9e7b826466ef1ee57e9f489332adc6e1c46a6c3a Mon Sep 17 00:00:00 2001 From: Michael Troger <11340859+michaeltroger@users.noreply.github.com> Date: Wed, 1 May 2024 14:19:25 +0200 Subject: [PATCH] Cleanup --- .../michaeltroger/gruenerpass/robots/AndroidFileAppRobot.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/androidTest/java/com/michaeltroger/gruenerpass/robots/AndroidFileAppRobot.kt b/app/src/androidTest/java/com/michaeltroger/gruenerpass/robots/AndroidFileAppRobot.kt index 589db27a..a9ce1db4 100644 --- a/app/src/androidTest/java/com/michaeltroger/gruenerpass/robots/AndroidFileAppRobot.kt +++ b/app/src/androidTest/java/com/michaeltroger/gruenerpass/robots/AndroidFileAppRobot.kt @@ -8,8 +8,8 @@ import androidx.test.uiautomator.UiScrollable import androidx.test.uiautomator.UiSelector import androidx.test.uiautomator.Until -private const val RETRIALS = 1 private const val TIMEOUT = 5000L +private const val testFolder = "testdata" class AndroidFileAppRobot { @@ -18,7 +18,7 @@ class AndroidFileAppRobot { private val hamburgerSelector = By.desc("Show roots") private val rootDirSelector = By.textStartsWith("Android SDK") - private val testDataDirSelector = By.text("testdata") + private val testDataDirSelector = By.text(testFolder) private val pdfSelector = By.textEndsWith(".pdf") private val greenPassAppSelector = By.text("Green Pass") private val shareButtonSelector = By.desc("Share") @@ -38,7 +38,7 @@ class AndroidFileAppRobot { uiDevice.wait(Until.hasObject(rootDirSelector), TIMEOUT) uiDevice.findObject(rootDirSelector).click() - uiScrollable.scrollTextIntoView("testdata") + uiScrollable.scrollTextIntoView(testFolder) uiDevice.wait(Until.hasObject(testDataDirSelector), TIMEOUT) uiDevice.findObject(testDataDirSelector).click()