Skip to content

Commit

Permalink
@knludi Step 5 - Add a feature Home class, and perform some validation
Browse files Browse the repository at this point in the history
  • Loading branch information
aludmila-gdev committed Aug 17, 2021
1 parent 31a5013 commit 3aec77f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/src/androidTest/java/feature/Home.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package feature

import androidx.test.uiautomator.UiDevice
import io.kranberry.outputs.ScreenshotHandler.takeScreenshot
import io.kranberry.ui.BaseUi
import io.kranberry.ui.elementIsPresentByTextContains

class Home(device: UiDevice) : BaseUi(device) {

fun shouldSeeFlowerList(): Home {
assert(elementIsPresentByTextContains("Flowers"))
takeScreenshot()
return this
}
}

0 comments on commit 3aec77f

Please sign in to comment.