From 7589e0cec4f8297793c21937642df8e79ffb6215 Mon Sep 17 00:00:00 2001 From: Victor Andreasson Date: Thu, 4 Apr 2024 19:21:25 +0200 Subject: [PATCH] Move sleep --- .../java/com/orgzly/android/espresso/NoteFragmentTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/androidTest/java/com/orgzly/android/espresso/NoteFragmentTest.kt b/app/src/androidTest/java/com/orgzly/android/espresso/NoteFragmentTest.kt index 872e21fcd..b504db1b6 100644 --- a/app/src/androidTest/java/com/orgzly/android/espresso/NoteFragmentTest.kt +++ b/app/src/androidTest/java/com/orgzly/android/espresso/NoteFragmentTest.kt @@ -520,7 +520,6 @@ class NoteFragmentTest : OrgzlyTest() { onNoteInBook(1).perform(longClick()) onActionItemClick(R.id.new_note, R.string.new_note); onView(withText(R.string.new_under)).perform(click()) - Thread.sleep(1000) onView(withId(R.id.title_edit)).perform(*replaceTextCloseKeyboard("1.1")) onView(withId(R.id.breadcrumbs_text)).perform(clickClickableSpan("Note #1.")) @@ -532,6 +531,7 @@ class NoteFragmentTest : OrgzlyTest() { onView(withText(R.string.cancel)).perform(click()) // Title remains the same + Thread.sleep(1000) onView(withId(R.id.title_edit)).check(matches(withText("1.1"))) }