Fixed Side Navbar
This commit is contained in:
parent
98ad4abc2f
commit
52d272065b
|
@ -119,6 +119,7 @@ class TeleniumTestProcess(TeleniumTestCase):
|
||||||
def open_side_navbar(self):
|
def open_side_navbar(self):
|
||||||
"""Common method for opening Side navbar (Side Drawer)"""
|
"""Common method for opening Side navbar (Side Drawer)"""
|
||||||
# Checking the drawer is in 'closed' state
|
# Checking the drawer is in 'closed' state
|
||||||
|
self.cli.execute('app.ContentNavigationDrawer.MDNavigationDrawer.opening_time=0')
|
||||||
self.assertExists('//MDNavigationDrawer[@status~=\"closed\"]', timeout=5)
|
self.assertExists('//MDNavigationDrawer[@status~=\"closed\"]', timeout=5)
|
||||||
# This is for checking the menu button is appeared
|
# This is for checking the menu button is appeared
|
||||||
self.assertExists('//ActionTopAppBarButton[@icon~=\"menu\"]', timeout=5)
|
self.assertExists('//ActionTopAppBarButton[@icon~=\"menu\"]', timeout=5)
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
Kivy Networkstat UI test
|
Kivy Networkstat UI test
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from time import sleep
|
|
||||||
from .telenium_process import TeleniumTestProcess
|
from .telenium_process import TeleniumTestProcess
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,9 +14,8 @@ class NetworkStatusScreen(TeleniumTestProcess):
|
||||||
# This is for checking Current screen
|
# This is for checking Current screen
|
||||||
self.assert_wait_no_except('//ScreenManager[@current]', timeout=15, value='login')
|
self.assert_wait_no_except('//ScreenManager[@current]', timeout=15, value='login')
|
||||||
# Method to open side navbar
|
# Method to open side navbar
|
||||||
if self.cli.wait('//ActionTopAppBarButton[@icon~=\"menu\"]', timeout=5):
|
# due to rapid transition effect, it doesn't click on menu-bar
|
||||||
sleep(0.2) # due to rapid transition effect, it doesn't click on menu-bar
|
self.open_side_navbar()
|
||||||
self.open_side_navbar()
|
|
||||||
# this is for scrolling Nav drawer
|
# this is for scrolling Nav drawer
|
||||||
self.drag("//NavigationItem[@text=\"Sent\"]", "//NavigationItem[@text=\"Inbox\"]")
|
self.drag("//NavigationItem[@text=\"Sent\"]", "//NavigationItem[@text=\"Inbox\"]")
|
||||||
# assert for checking scroll function
|
# assert for checking scroll function
|
||||||
|
|
Reference in New Issue
Block a user