Skip to content

Commit

Permalink
@knludi Step 4 - Add a feature App class, which opens the app and ret…
Browse files Browse the repository at this point in the history
…urns the homepage
  • Loading branch information
aludmila-gdev committed Aug 17, 2021
1 parent ba3c973 commit 31a5013
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions app/src/androidTest/java/feature/App.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package feature

import androidx.test.uiautomator.UiDevice
import io.kranberry.environment.DeviceHandler.APP_PACKAGE
import io.kranberry.environment.DeviceHandler.start
import io.kranberry.outputs.ScreenshotHandler.takeScreenshot
import io.kranberry.ui.BaseUi

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

fun open(): Home {
start(APP_PACKAGE)
takeScreenshot()
return Home(device)
}
}

0 comments on commit 31a5013

Please sign in to comment.