Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltroger committed May 1, 2024
1 parent f7ce3f5 commit 9e7b826
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -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")
Expand All @@ -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()

Expand Down

0 comments on commit 9e7b826

Please sign in to comment.