appium / appium-uiautomator2-server

Appium UiAutomator/UiObject2-based server for Android UI automation. This module is used by appium-uiautomator2-driver component
Apache License 2.0
328 stars 232 forks source link

ci: add android 13 #584

Open KazuCocoa opened 9 months ago

KazuCocoa commented 9 months ago

lets see how this will be

KazuCocoa commented 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());
    }
mykola-mokhnach commented 9 months ago

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