Skip to content

Commit

Permalink
#395 Replace waitForWindowUpdate with Thread.sleep()
Browse files Browse the repository at this point in the history
As suggested in #404 (comment)

Signed-off-by: Stefan Niedermann <info@niedermann.it>
  • Loading branch information
stefan-niedermann authored and AndyScherzinger committed Jan 19, 2024
1 parent f98e190 commit dfe0909
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void test_00_configureNextcloudAccount() throws UiObjectNotFoundException
}

@Test
public void test_01_importAccountIntoSampleApp() throws UiObjectNotFoundException {
public void test_01_importAccountIntoSampleApp() throws UiObjectNotFoundException, InterruptedException {
Log.i(TAG, "Import account into sample app");
launch(APP_SAMPLE);

Expand All @@ -131,7 +131,7 @@ public void test_01_importAccountIntoSampleApp() throws UiObjectNotFoundExceptio
radioAccount.waitForExists(TIMEOUT);
radioAccount.click();

mDevice.waitForWindowUpdate(null, TIMEOUT);
Thread.sleep(5_000);

final var okButton = mDevice.findObject(new UiSelector()
.textContains("OK"));
Expand Down

0 comments on commit dfe0909

Please sign in to comment.