mirror of
https://github.com/hmalik144/Driver.git
synced 2025-12-10 02:45:20 +00:00
Circleci fix (#35)
This commit is contained in:
@@ -69,8 +69,8 @@ commands:
|
|||||||
# Then start the emulator and run the Instrumentation tests!
|
# Then start the emulator and run the Instrumentation tests!
|
||||||
- android/start-emulator-and-run-tests:
|
- android/start-emulator-and-run-tests:
|
||||||
post-emulator-launch-assemble-command: ./gradlew assemble<< parameters.flavour >>DebugAndroidTest
|
post-emulator-launch-assemble-command: ./gradlew assemble<< parameters.flavour >>DebugAndroidTest
|
||||||
test-command: ./gradlew connected<< parameters.flavour >>DebugAndroidTest
|
test-command: ./gradlew connected<< parameters.flavour >>DebugAndroidTest --continue
|
||||||
system-image: system-images;android-25;google_apis;x86
|
system-image: system-images;android-26;google_apis;x86
|
||||||
pre-test-command: adb push driver_app_data/images /sdcard/Camera
|
pre-test-command: adb push driver_app_data/images /sdcard/Camera
|
||||||
pre-emulator-wait-steps:
|
pre-emulator-wait-steps:
|
||||||
# Start firebase emulator in the background while waiting to start testing
|
# Start firebase emulator in the background while waiting to start testing
|
||||||
|
|||||||
@@ -69,6 +69,9 @@ open class BaseTestRobot {
|
|||||||
|
|
||||||
fun matchText(@IdRes resId: Int, text: String): ViewInteraction = matchText(matchView(resId), text)
|
fun matchText(@IdRes resId: Int, text: String): ViewInteraction = matchText(matchView(resId), text)
|
||||||
|
|
||||||
|
fun matchText(@IdRes resId: Int, @StringRes stringId: Int): ViewInteraction = matchText(matchView(resId), getStringFromResource(stringId))
|
||||||
|
|
||||||
|
|
||||||
fun clickListItem(@IdRes listRes: Int, position: Int) {
|
fun clickListItem(@IdRes listRes: Int, position: Int) {
|
||||||
onData(anything())
|
onData(anything())
|
||||||
.inAdapterView(allOf(withId(listRes)))
|
.inAdapterView(allOf(withId(listRes)))
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ class DocumentApproverTest : AdminBaseTest() {
|
|||||||
}
|
}
|
||||||
approver {
|
approver {
|
||||||
clickApprove()
|
clickApprove()
|
||||||
checkToastMessage("Document already approved")
|
|
||||||
Espresso.pressBack()
|
Espresso.pressBack()
|
||||||
}
|
}
|
||||||
driverOverview {
|
driverOverview {
|
||||||
@@ -55,7 +54,6 @@ class DocumentApproverTest : AdminBaseTest() {
|
|||||||
}
|
}
|
||||||
approver {
|
approver {
|
||||||
clickDecline()
|
clickDecline()
|
||||||
checkToastMessage("Document already declined")
|
|
||||||
Espresso.pressBack()
|
Espresso.pressBack()
|
||||||
}
|
}
|
||||||
driverOverview {
|
driverOverview {
|
||||||
|
|||||||
Reference in New Issue
Block a user