2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00
AndiAJ 2021-05-11 19:08:53 +03:00 committed by Oana Horvath
parent 8e16b102f6
commit 1a8155edfd

View File

@ -314,9 +314,9 @@ class HomeScreenRobot {
}
fun openSearch(interact: SearchRobot.() -> Unit): SearchRobot.Transition {
navigationToolbar().perform(click())
mDevice.findObject(UiSelector().resourceId("$packageName:id/search_wrapper"))
mDevice.findObject(UiSelector().resourceId("$packageName:id/toolbar"))
.waitForExists(waitingTime)
navigationToolbar().perform(click())
SearchRobot().interact()
return SearchRobot.Transition()
@ -376,7 +376,9 @@ class HomeScreenRobot {
}
fun openNavigationToolbar(interact: NavigationToolbarRobot.() -> Unit): NavigationToolbarRobot.Transition {
assertNavigationToolbar().perform(click())
mDevice.findObject(UiSelector().resourceId("$packageName:id/toolbar"))
.waitForExists(waitingTime)
navigationToolbar().perform(click())
NavigationToolbarRobot().interact()
return NavigationToolbarRobot.Transition()
@ -472,8 +474,7 @@ private fun assertKeyboardVisibility(isExpectedToBeVisible: Boolean) =
.contains("mInputShown=true")
)
private fun navigationToolbar() =
onView(withId(R.id.toolbar_wrapper))
private fun navigationToolbar() = onView(withId(R.id.toolbar))
private fun closeTabButton() = onView(withId(R.id.close_tab_button))