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>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
  • Loading branch information
stefan-niedermann authored and AndyScherzinger committed Jan 19, 2024
1 parent eb6c78e commit fdc4668
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 fdc4668

Please sign in to comment.