From 8abf5805798b214b54a1efc97e7f9a4918c3ffcc Mon Sep 17 00:00:00 2001 From: Patrick Martin Date: Tue, 19 Nov 2019 10:15:22 -0800 Subject: [PATCH] For #2294 - History URL is cut with a large font se --- .../java/org/mozilla/fenix/ui/robots/BookmarksRobot.kt | 2 +- app/src/main/res/layout/library_site_item.xml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/BookmarksRobot.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/BookmarksRobot.kt index fb3954176..29442bcc8 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/BookmarksRobot.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/BookmarksRobot.kt @@ -136,7 +136,7 @@ private fun assertBookmarkFavicon() = bookmarkFavicon().check( ) private fun assertBookmarkURL(expectedURL: Uri) = bookmarkURL() - .check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE))) + .check(matches(ViewMatchers.isCompletelyDisplayed())) .check(matches(withText(containsString(expectedURL.toString())))) private fun assertFolderTitle(expectedTitle: String) = folderTitle() diff --git a/app/src/main/res/layout/library_site_item.xml b/app/src/main/res/layout/library_site_item.xml index 7cbbf49ac..155c39cbf 100644 --- a/app/src/main/res/layout/library_site_item.xml +++ b/app/src/main/res/layout/library_site_item.xml @@ -7,7 +7,8 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" - android:layout_height="@dimen/library_item_height" + android:layout_height="wrap_content" + android:minHeight="@dimen/library_item_height" android:background="?android:attr/selectableItemBackground">