2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-11 13:11:01 +00:00

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

This commit is contained in:
Mihai Adrian 2020-01-16 18:03:59 +02:00 committed by Aaron Train
parent 981d19de13
commit 6b786ca8dc

View File

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