From 965d99a1c154b6955e95724384e22ce4e6b10bf9 Mon Sep 17 00:00:00 2001 From: Andrey Mukamolov Date: Thu, 18 Jul 2019 17:56:33 +0300 Subject: [PATCH] For #2142: Added UI test assertion --- .../java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt index dc92176cb..56b337ca7 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt @@ -119,7 +119,7 @@ private fun assertHomePrivateBrowsingButton() = onView(ViewMatchers.withResource private fun assertHomeWordmark() = onView(ViewMatchers.withResourceName("wordmark")) .check(matches(withEffectiveVisibility(Visibility.VISIBLE))) private fun assertHomeToolbar() = onView(ViewMatchers.withResourceName("toolbar")) - .check(matches(withEffectiveVisibility(Visibility.VISIBLE))) + .check(matches(allOf(withEffectiveVisibility(Visibility.VISIBLE), ViewMatchers.hasFocus()))) private fun assertOpenTabsHeader() = onView(CoreMatchers.allOf(ViewMatchers.withText("Open tabs"))) .check(matches(withEffectiveVisibility(Visibility.VISIBLE)))