parent
f52ddbe74b
commit
1e806b25c1
|
@ -11,7 +11,6 @@ import mozilla.components.browser.storage.sync.PlacesHistoryStorage
|
||||||
import okhttp3.mockwebserver.MockWebServer
|
import okhttp3.mockwebserver.MockWebServer
|
||||||
import org.junit.After
|
import org.junit.After
|
||||||
import org.junit.Before
|
import org.junit.Before
|
||||||
import org.junit.Ignore
|
|
||||||
import org.junit.Rule
|
import org.junit.Rule
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import org.mozilla.fenix.helpers.AndroidAssetDispatcher
|
import org.mozilla.fenix.helpers.AndroidAssetDispatcher
|
||||||
|
@ -165,7 +164,6 @@ class HistoryTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Ignore("Failing test: https://github.com/mozilla-mobile/fenix/issues/12893")
|
|
||||||
@Test
|
@Test
|
||||||
fun deleteAllHistoryTest() {
|
fun deleteAllHistoryTest() {
|
||||||
val firstWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
val firstWebPage = TestAssetHelper.getGenericAsset(mockWebServer, 1)
|
||||||
|
|
|
@ -15,6 +15,7 @@ import androidx.test.espresso.matcher.ViewMatchers.withId
|
||||||
import androidx.test.espresso.matcher.ViewMatchers.withParent
|
import androidx.test.espresso.matcher.ViewMatchers.withParent
|
||||||
import androidx.test.espresso.matcher.ViewMatchers.withText
|
import androidx.test.espresso.matcher.ViewMatchers.withText
|
||||||
import androidx.test.uiautomator.By
|
import androidx.test.uiautomator.By
|
||||||
|
import androidx.test.uiautomator.UiSelector
|
||||||
import androidx.test.uiautomator.Until
|
import androidx.test.uiautomator.Until
|
||||||
import org.hamcrest.Matchers
|
import org.hamcrest.Matchers
|
||||||
import org.hamcrest.Matchers.allOf
|
import org.hamcrest.Matchers.allOf
|
||||||
|
@ -31,12 +32,10 @@ class HistoryRobot {
|
||||||
fun verifyHistoryMenuView() = assertHistoryMenuView()
|
fun verifyHistoryMenuView() = assertHistoryMenuView()
|
||||||
|
|
||||||
fun verifyEmptyHistoryView() {
|
fun verifyEmptyHistoryView() {
|
||||||
mDevice.waitNotNull(
|
mDevice.findObject(
|
||||||
Until.findObject(
|
UiSelector().text("No history here")
|
||||||
By.text("No history here")
|
).waitForExists(waitingTime)
|
||||||
),
|
|
||||||
waitingTime
|
|
||||||
)
|
|
||||||
assertEmptyHistoryView()
|
assertEmptyHistoryView()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue