Open KazuCocoa opened 9 months ago
toast timing and below should be updated for the newer emulator:
@Test
public void verifyDismissingAnAlertWithButton() throws JSONException {
if (Build.VERSION.SDK_INT < 23) {
return;
}
setupView();
Response response = findElement(By.accessibilityId("OK Cancel dialog with a long message"));
clickAndWaitForStaleness(response.getElementId());
// response = dismissAlert("CANCEL");
response = dismissAlert("Cancel");
assertTrue(response.isSuccessful());
}
AFAIK integration tests on newer platform versions were never stable. Android emulators running recent OS versions are quite resource-demanding and weak GH VMs cannot ensure the necessary performance thus making tests flaky. Perhaps, moving to a higher (paid) teer would help, I remember @jlipps has once mentioned such possibility
lets see how this will be