Make all tests pass on Android 9.0 (Pie)

This commit is contained in:
2019-11-18 21:40:34 -06:00
parent 7eafd92b2d
commit de44b48dba

View File

@@ -70,6 +70,10 @@ public class WidgetSteps {
button = device.findObject(new UiSelector().text("Widgets")); button = device.findObject(new UiSelector().text("Widgets"));
} }
button.click(); button.click();
if (SDK_INT == 28) {
new UiScrollable(new UiSelector().resourceId(list_id))
.scrollForward();
}
new UiScrollable(new UiSelector().resourceId(list_id)) new UiScrollable(new UiSelector().resourceId(list_id))
.scrollIntoView(new UiSelector().text("Checkmark")); .scrollIntoView(new UiSelector().text("Checkmark"));
} }