Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Closes #12893: fixed deleteAllHistoryTest (#13255)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oana Horvath committed Aug 4, 2020
1 parent f52ddbe commit 1e806b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 0 additions & 2 deletions app/src/androidTest/java/org/mozilla/fenix/ui/HistoryTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
}

Expand Down

0 comments on commit 1e806b2

Please sign in to comment.