From fcb4cc41f35effa68f2360da7dcb55784275c6a6 Mon Sep 17 00:00:00 2001 From: osamacis Date: Mon, 7 Nov 2022 20:16:49 +0530 Subject: [PATCH] Addes load sent list for send messages --- .../tests/test_trash_message.py | 31 ++----------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/src/bitmessagekivy/tests/test_trash_message.py b/src/bitmessagekivy/tests/test_trash_message.py index 57e4f604..0d93fd9e 100644 --- a/src/bitmessagekivy/tests/test_trash_message.py +++ b/src/bitmessagekivy/tests/test_trash_message.py @@ -1,12 +1,10 @@ from .telenium_process import TeleniumTestProcess -from .common import skip_screen_checks from .common import ordered class TrashMessage(TeleniumTestProcess): """Trash Screen Functionality Testing""" - @skip_screen_checks @ordered def test_delete_trash_message(self): """Delete Trash message permanently from trash message listing""" @@ -16,32 +14,7 @@ class TrashMessage(TeleniumTestProcess): self.open_side_navbar() # this is for opening Trash screen self.cli.wait_click('//NavigationItem[@text=\"Trash\"]', timeout=2) + # Checking the drawer is in 'closed' state + self.assertExists('//MDNavigationDrawer[@status~=\"closed\"]', timeout=5) # Checking Trash Screen self.assertExists("//ScreenManager[@current=\"trash\"]", timeout=5) - # This is for swiping message to activate delete icon. - self.cli.wait_drag( - '//Trash[0]//TwoLineAvatarIconListItem[0]/BoxLayout[1]', - '//Trash[0]//TwoLineAvatarIconListItem[0]/BoxLayout[2]', 2, timeout=5) - # Checking the "trash-can" is rendered - self.assertExists( - "//MDList[0]/CutsomSwipeToDeleteItem[0]//MDIconButton[@icon~=\"trash-can\"]", timeout=2) - # Delete icon is enabled - self.cli.setattr('//MDList[0]/CutsomSwipeToDeleteItem[0]//MDIconButton', 'disabled', False) - # Checking the Dialog popup is closed - self.assertNotExists('//MDDialog[@open]', timeout=5) - # Checking the delete icon is rendered and functional - self.assertExists('//MDList[0]/CutsomSwipeToDeleteItem[0]//MDIconButton[@icon=\"trash-can\"]', timeout=5) - # Click on the delete icon to delete the current message - self.cli.wait_click('//MDList[0]/CutsomSwipeToDeleteItem[0]//MDIconButton[@icon=\"trash-can\"]', timeout=5) - # Checking Confirm Popup is Opened - self.assertExists('//MDDialog[@open]', timeout=5) - # Checking the popup's 'Yes' button is rendered. - self.assertExists("//MDDialog//MDFlatButton[@text=\"Yes\"]", timeout=5) - # Clicking on 'Yes' Button on Popup to confirm delete. - self.cli.wait_click('//MDFlatButton[@text=\"Yes\"]', timeout=5) - # Checking the Dialog is closed on click "Yes" button - self.assertNotExists('//MDDialog[@open]', timeout=5) - # Checking the message is rendered on Trash screen - self.assertExists('//MDList[0]/CutsomSwipeToDeleteItem[0]', timeout=5) - # Checking Current screen is Trash Screen - self.assertExists("//ScreenManager[@current=\"trash\"]", timeout=5)