From 2150c36b705f40d3274b31a84cc7965c84e42704 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Wed, 17 Jan 2024 00:49:57 -0800 Subject: [PATCH] do not redundant preperation --- .../uiautomator2/unittest/test/ActionsCommandsTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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