@ -77,6 +77,7 @@ class TabDrawerRobot {
fun verifyPrivateModeSelected ( ) = assertPrivateModeSelected ( )
fun verifyPrivateModeSelected ( ) = assertPrivateModeSelected ( )
fun verifyNormalModeSelected ( ) = assertNormalModeSelected ( )
fun verifyNormalModeSelected ( ) = assertNormalModeSelected ( )
fun verifyNewTabButton ( ) = assertNewTabButton ( )
fun verifyNewTabButton ( ) = assertNewTabButton ( )
fun verifySelectTabsButton ( ) = assertSelectTabsButton ( )
fun verifyTabTrayOverflowMenu ( visibility : Boolean ) = assertTabTrayOverflowButton ( visibility )
fun verifyTabTrayOverflowMenu ( visibility : Boolean ) = assertTabTrayOverflowButton ( visibility )
fun verifyTabTrayIsClosed ( ) = assertTabTrayDoesNotExist ( )
fun verifyTabTrayIsClosed ( ) = assertTabTrayDoesNotExist ( )
@ -391,6 +392,10 @@ private fun assertNewTabButton() =
onView ( withId ( R . id . new _tab _button ) )
onView ( withId ( R . id . new _tab _button ) )
. check ( matches ( withEffectiveVisibility ( ViewMatchers . Visibility . VISIBLE ) ) )
. check ( matches ( withEffectiveVisibility ( ViewMatchers . Visibility . VISIBLE ) ) )
private fun assertSelectTabsButton ( ) =
onView ( withText ( " Select tabs " ) )
. check ( matches ( withEffectiveVisibility ( ViewMatchers . Visibility . VISIBLE ) ) )
private fun assertNormalModeSelected ( ) =
private fun assertNormalModeSelected ( ) =
normalBrowsingButton ( )
normalBrowsingButton ( )
. check ( matches ( ViewMatchers . isSelected ( ) ) )
. check ( matches ( ViewMatchers . isSelected ( ) ) )