diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HistoryRobot.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HistoryRobot.kt index 94a91eea1..1636b5057 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HistoryRobot.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HistoryRobot.kt @@ -138,7 +138,7 @@ private fun assertTestPageTitle(title: String) = testPageTitle() .check(matches(withText(title))) private fun assertPageUrl(expectedUrl: Uri) = pageUrl() - .check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE))) + .check(matches(ViewMatchers.isCompletelyDisplayed())) .check(matches(withText(Matchers.containsString(expectedUrl.toString())))) private fun assertDeleteConfirmationMessage() = diff --git a/app/src/main/res/layout/history_list_item.xml b/app/src/main/res/layout/history_list_item.xml index fe60e4b64..514e73913 100644 --- a/app/src/main/res/layout/history_list_item.xml +++ b/app/src/main/res/layout/history_list_item.xml @@ -33,8 +33,9 @@ android:visibility="gone" /> + android:id="@+id/history_layout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="@dimen/library_item_height" />