diff --git a/src/bitmessagekivy/tests/telenium_process.py b/src/bitmessagekivy/tests/telenium_process.py index 1c33cc9c..2508cc89 100644 --- a/src/bitmessagekivy/tests/telenium_process.py +++ b/src/bitmessagekivy/tests/telenium_process.py @@ -118,3 +118,13 @@ class TeleniumTestProcess(TeleniumTestCase): # Finally Sleep is used to make the menu button funcationlly available for the click process. # (because Transition is little bit slow) sleep(0.2) + + def open_side_navbar(self): + """Common method for opening side navbar (Side Drawer)""" + self.assertExists('//MDNavigationDrawer[@status~=\"closed\"]', timeout=5) + # This is for checking the menu button is appeared + self.assertExists('//MDActionTopAppBarButton[@icon~=\"menu\"]', timeout=5) + # this is for opening Nav drawer + self.cli.wait_click('//MDActionTopAppBarButton[@icon=\"menu\"]', timeout=5) + # checking state of Nav drawer + self.assertExists("//MDNavigationDrawer[@state~=\"open\"]", timeout=5) \ No newline at end of file diff --git a/src/bitmessagekivy/tests/test_myaddress_screen.py b/src/bitmessagekivy/tests/test_myaddress_screen.py index 1150b342..d88b97f9 100644 --- a/src/bitmessagekivy/tests/test_myaddress_screen.py +++ b/src/bitmessagekivy/tests/test_myaddress_screen.py @@ -178,14 +178,3 @@ class MyAddressScreen(TeleniumTestProcess): # Checking the disabled address should not be in dropdown self.assertNotExists('//MySpinnerOption[@text="{}"]'.format(disabled_address), timeout=5) - - - def open_side_navbar(self): - """Common method for opening navbar""" - self.assertExists('//MDNavigationDrawer[@status~=\"closed\"]', timeout=5) - # This is for checking the menu button is appeared - self.assertExists('//MDActionTopAppBarButton[@icon~=\"menu\"]', timeout=5) - # this is for opening Nav drawer - self.cli.wait_click('//MDActionTopAppBarButton[@icon=\"menu\"]', timeout=5) - # checking state of Nav drawer - self.assertExists("//MDNavigationDrawer[@state~=\"open\"]", timeout=5) \ No newline at end of file