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:
parent
b0764f9042
commit
b0d0e1b8c9
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user