1
0
Fork 0

Closes #12893: fixed deleteAllHistoryTest (#13255)

master
Oana Horvath 2020-08-04 20:33:52 +03:00 committed by GitHub
parent f52ddbe74b
commit 1e806b25c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 8 deletions

View File

@ -11,7 +11,6 @@ import mozilla.components.browser.storage.sync.PlacesHistoryStorage
import okhttp3.mockwebserver.MockWebServer
import org.junit.After
import org.junit.Before
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.mozilla.fenix.helpers.AndroidAssetDispatcher
@ -165,7 +164,6 @@ class HistoryTest {
}
}
@Ignore("Failing test: https://github.com/mozilla-mobile/fenix/issues/12893")
@Test
fun deleteAllHistoryTest() {
val firstWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)

View File

@ -15,6 +15,7 @@ import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.espresso.matcher.ViewMatchers.withParent
import androidx.test.espresso.matcher.ViewMatchers.withText
import androidx.test.uiautomator.By
import androidx.test.uiautomator.UiSelector
import androidx.test.uiautomator.Until
import org.hamcrest.Matchers
import org.hamcrest.Matchers.allOf
@ -31,12 +32,10 @@ class HistoryRobot {
fun verifyHistoryMenuView() = assertHistoryMenuView()
fun verifyEmptyHistoryView() {
mDevice.waitNotNull(
Until.findObject(
By.text("No history here")
),
waitingTime
)
mDevice.findObject(
UiSelector().text("No history here")
).waitForExists(waitingTime)
assertEmptyHistoryView()
}