diff --git a/sample/src/androidTest/java/com/nextcloud/android/sso/sample/E2ETest.java b/sample/src/androidTest/java/com/nextcloud/android/sso/sample/E2ETest.java index 05d8b246e..3f2c3da44 100644 --- a/sample/src/androidTest/java/com/nextcloud/android/sso/sample/E2ETest.java +++ b/sample/src/androidTest/java/com/nextcloud/android/sso/sample/E2ETest.java @@ -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); @@ -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"));