From 44d42c637df066a37e69e24f62944c68095e4eeb Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Tue, 26 Oct 2021 15:05:08 +0530 Subject: [PATCH] Refactor list all messages kivy test --- src/bitmessagekivy/tests/test_allmail_message.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/bitmessagekivy/tests/test_allmail_message.py b/src/bitmessagekivy/tests/test_allmail_message.py index 4a902b38..35359b92 100644 --- a/src/bitmessagekivy/tests/test_allmail_message.py +++ b/src/bitmessagekivy/tests/test_allmail_message.py @@ -12,14 +12,8 @@ class AllMailMessage(TeleniumTestProcess): """Show All Messages on Mail Screen/Window""" # This is for checking Current screen self.assert_wait_no_except('//ScreenManager[@current]', timeout=15, value='inbox') - # This is for checking the Side nav Bar id closed - 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=3) - # checking state of Nav drawer - self.assertExists("//MDNavigationDrawer[@state~=\"open\"]", timeout=5) + # Method to open side navbar + self.open_side_navbar() # this is for opening All Mail screen self.cli.wait_click('//NavigationItem[@text=\"All Mails\"]', timeout=5) # Assert for checking Current Screen(All mail)