Fix widget tests on API 29+

pull/629/head
Alinson S. Xavier 5 years ago
parent 209e709163
commit 09eb8c9f4d

@ -70,7 +70,7 @@ 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) { if (SDK_INT >= 28) {
new UiScrollable(new UiSelector().resourceId(list_id)) new UiScrollable(new UiSelector().resourceId(list_id))
.scrollForward(); .scrollForward();
} }

Loading…
Cancel
Save