1
0
Fork 0

For #7417 Wait for deletion to finish and loading of new UI (#7572)

master
Mihai Adrian 2020-01-16 18:03:59 +02:00 committed by Aaron Train
parent 981d19de13
commit 6b786ca8dc
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,7 @@
package org.mozilla.fenix.ui
import androidx.test.espresso.Espresso.openActionBarOverflowOrOptionsMenu
import androidx.test.platform.app.InstrumentationRegistry.getInstrumentation
import kotlinx.coroutines.runBlocking
import mozilla.appservices.places.BookmarkRoot
import okhttp3.mockwebserver.MockWebServer
@ -319,8 +320,11 @@ class BookmarksTest {
}.openThreeDotMenu {
}.openBookmarks {
createFolder("1")
getInstrumentation().waitForIdleSync()
createFolder("2")
getInstrumentation().waitForIdleSync()
createFolder("3")
getInstrumentation().waitForIdleSync()
}.openThreeDotMenu("1") {
}.clickDelete {
}.openThreeDotMenu("2") {