diff --git a/app/src/androidTestE2eTest/java/io/appium/uiautomator2/unittest/test/ActionsCommandsTest.java b/app/src/androidTestE2eTest/java/io/appium/uiautomator2/unittest/test/ActionsCommandsTest.java index 25bb163fd..e578ded86 100644 --- a/app/src/androidTestE2eTest/java/io/appium/uiautomator2/unittest/test/ActionsCommandsTest.java +++ b/app/src/androidTestE2eTest/java/io/appium/uiautomator2/unittest/test/ActionsCommandsTest.java @@ -76,6 +76,14 @@ private void setupDragDropView() throws JSONException { private void setupEditView() throws JSONException { startActivity(".app.AlertDialogSamples"); + Response response = findElement(By.accessibilityId("Text Entry dialog")); + clickAndWaitForStaleness(response.getElementId()); + } + + @Override + public void launchAUT() { + // Skip some setup to avoid redundant setup. + dismissSystemAlert(); } @Test