From 47dffae19e65c873ea5ffd6d2cd421b711e85972 Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Fri, 22 Oct 2021 17:03:42 +0530 Subject: [PATCH] Refactor draft screen test --- src/bitmessagekivy/tests/test_draft_message.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/bitmessagekivy/tests/test_draft_message.py b/src/bitmessagekivy/tests/test_draft_message.py index 2edafa48..23844640 100644 --- a/src/bitmessagekivy/tests/test_draft_message.py +++ b/src/bitmessagekivy/tests/test_draft_message.py @@ -86,16 +86,7 @@ class DraftMessage(TeleniumTestProcess): """Click on a Drafted message to send message""" # OPEN NAVIGATION-DRAWER # 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) - # Click to open Draft Screen - self.cli.wait_click('//NavigationItem[@text=\"Draft\"]', timeout=5) - # checking state of Nav drawer - self.assertExists("//MDNavigationDrawer[@state~=\"close\"]", timeout=5) - # Checking Draft Screen - self.assertExists("//ScreenManager[@current=\"draft\"]", timeout=5) - + self.open_side_navbar() # Checking messages in draft box self.assertEqual(len(self.cli.select('//SwipeToDeleteItem[0]//TwoLineAvatarIconListItem')), 1) # Wait to render the widget