2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00

[fenix] No issue: Use same open tabs tray everywhere

This commit is contained in:
Jonathan Almeida 2021-04-16 20:57:09 -04:00 committed by Jonathan Almeida
parent b0764f9042
commit b0d0e1b8c9
2 changed files with 6 additions and 11 deletions

View File

@ -185,10 +185,10 @@ class NavigationToolbarRobot {
}
fun openTabTray(interact: TabDrawerRobot.() -> Unit): TabDrawerRobot.Transition {
onView(withId(R.id.tab_button))
.check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)))
mDevice.waitForIdle(waitingTime)
tabTrayButton().click()
mDevice.waitNotNull(Until.findObject(By.res("$packageName:id/tab_layout")),
waitingTime)
TabDrawerRobot().interact()
return TabDrawerRobot.Transition()

View File

@ -208,15 +208,10 @@ class TabDrawerRobot {
}
fun openTabDrawer(interact: TabDrawerRobot.() -> Unit): TabDrawerRobot.Transition {
mDevice.findObject(UiSelector().resourceId("$packageName:id/tab_button"))
.waitForExists(waitingTime)
mDevice.waitForIdle(waitingTime)
tabsCounter().click()
org.mozilla.fenix.ui.robots.mDevice.waitNotNull(
Until.findObject(By.res("$packageName:id/tab_layout")),
waitingTime
)
mDevice.waitNotNull(Until.findObject(By.res("$packageName:id/tab_layout")),
waitingTime)
TabDrawerRobot().interact()
return TabDrawerRobot.Transition()