From d6e352a09653818bcb4b88196c3cfe502e054fa2 Mon Sep 17 00:00:00 2001 From: Stefan Niedermann Date: Sat, 6 Nov 2021 12:43:37 +0100 Subject: [PATCH] #395 Replace waitForWindowUpdate with Thread.sleep() As suggested in https://github.com/nextcloud/Android-SingleSignOn/pull/404#issuecomment-962433568 Signed-off-by: Stefan Niedermann Signed-off-by: Andy Scherzinger --- .../java/com/nextcloud/android/sso/sample/E2ETest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"));