From 5b86c403b00586232d72b3447262ffcc460513d7 Mon Sep 17 00:00:00 2001 From: cesar Date: Sat, 23 Nov 2019 18:06:32 -0300 Subject: [PATCH] klint clean up and previous nit fixed --- .../org/mozilla/fenix/ui/robots/BookmarksRobot.kt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 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 e99ae756a..3ad41cdf2 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 @@ -11,12 +11,17 @@ import androidx.test.espresso.Espresso.onView import androidx.test.espresso.action.ViewActions.typeText import androidx.test.espresso.assertion.ViewAssertions.matches import androidx.test.espresso.matcher.ViewMatchers -import androidx.test.espresso.matcher.ViewMatchers.* +import androidx.test.espresso.matcher.ViewMatchers.withChild +import androidx.test.espresso.matcher.ViewMatchers.withContentDescription +import androidx.test.espresso.matcher.ViewMatchers.withEffectiveVisibility +import androidx.test.espresso.matcher.ViewMatchers.withId +import androidx.test.espresso.matcher.ViewMatchers.withParent +import androidx.test.espresso.matcher.ViewMatchers.withText import androidx.test.platform.app.InstrumentationRegistry import androidx.test.uiautomator.UiDevice import org.hamcrest.Matchers.allOf import org.hamcrest.Matchers.containsString -import org.junit.Assert +import org.junit.Assert.assertEquals import org.mozilla.fenix.R import org.mozilla.fenix.helpers.click @@ -180,7 +185,7 @@ private fun assertBookmarkURLEditBox() = .check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE))) private fun assertKeyboardVisibility(isExpectedToBeVisible: Boolean) = - Assert.assertEquals( + assertEquals( isExpectedToBeVisible, UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) .executeShellCommand("dumpsys input_method | grep mInputShown")