From 52d272065bd0f7ec47393c62966c47c2c770f70d Mon Sep 17 00:00:00 2001
From: osamacis <mohammad.o@cisinlabs.com>
Date: Mon, 7 Nov 2022 20:36:35 +0530
Subject: [PATCH] Fixed Side Navbar

---
 src/bitmessagekivy/tests/telenium_process.py    | 1 +
 src/bitmessagekivy/tests/test_network_screen.py | 6 ++----
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/bitmessagekivy/tests/telenium_process.py b/src/bitmessagekivy/tests/telenium_process.py
index c1ca10fa..97a0d584 100644
--- a/src/bitmessagekivy/tests/telenium_process.py
+++ b/src/bitmessagekivy/tests/telenium_process.py
@@ -119,6 +119,7 @@ class TeleniumTestProcess(TeleniumTestCase):
     def open_side_navbar(self):
         """Common method for opening Side navbar (Side Drawer)"""
         # Checking the drawer is in 'closed' state
+        self.cli.execute('app.ContentNavigationDrawer.MDNavigationDrawer.opening_time=0')
         self.assertExists('//MDNavigationDrawer[@status~=\"closed\"]', timeout=5)
         # This is for checking the menu button is appeared
         self.assertExists('//ActionTopAppBarButton[@icon~=\"menu\"]', timeout=5)
diff --git a/src/bitmessagekivy/tests/test_network_screen.py b/src/bitmessagekivy/tests/test_network_screen.py
index 8da6a7d9..f307dfae 100644
--- a/src/bitmessagekivy/tests/test_network_screen.py
+++ b/src/bitmessagekivy/tests/test_network_screen.py
@@ -3,7 +3,6 @@
     Kivy Networkstat UI test
 """
 
-from time import sleep
 from .telenium_process import TeleniumTestProcess
 
 
@@ -15,9 +14,8 @@ class NetworkStatusScreen(TeleniumTestProcess):
         # This is for checking Current screen
         self.assert_wait_no_except('//ScreenManager[@current]', timeout=15, value='login')
         # Method to open side navbar
-        if self.cli.wait('//ActionTopAppBarButton[@icon~=\"menu\"]', timeout=5):
-            sleep(0.2)  # due to rapid transition effect, it doesn't click on menu-bar
-            self.open_side_navbar()
+        # due to rapid transition effect, it doesn't click on menu-bar
+        self.open_side_navbar()
         # this is for scrolling Nav drawer
         self.drag("//NavigationItem[@text=\"Sent\"]", "//NavigationItem[@text=\"Inbox\"]")
         # assert for checking scroll function