Skip to content

Commit fdc4668

Browse files
stefan-niedermannAndyScherzinger
authored andcommitted
#395 Replace waitForWindowUpdate with Thread.sleep()
As suggested in #404 (comment) Signed-off-by: Stefan Niedermann <[email protected]> Signed-off-by: Andy Scherzinger <[email protected]>
1 parent eb6c78e commit fdc4668

File tree

1 file changed

+2
-2
lines changed
  • sample/src/androidTest/java/com/nextcloud/android/sso/sample

1 file changed

+2
-2
lines changed

sample/src/androidTest/java/com/nextcloud/android/sso/sample/E2ETest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public void test_00_configureNextcloudAccount() throws UiObjectNotFoundException
113113
}
114114

115115
@Test
116-
public void test_01_importAccountIntoSampleApp() throws UiObjectNotFoundException {
116+
public void test_01_importAccountIntoSampleApp() throws UiObjectNotFoundException, InterruptedException {
117117
Log.i(TAG, "Import account into sample app");
118118
launch(APP_SAMPLE);
119119

@@ -131,7 +131,7 @@ public void test_01_importAccountIntoSampleApp() throws UiObjectNotFoundExceptio
131131
radioAccount.waitForExists(TIMEOUT);
132132
radioAccount.click();
133133

134-
mDevice.waitForWindowUpdate(null, TIMEOUT);
134+
Thread.sleep(5_000);
135135

136136
final var okButton = mDevice.findObject(new UiSelector()
137137
.textContains("OK"));

0 commit comments

Comments
 (0)