fixed code quality

This commit is contained in:
shekhar-cis 2021-07-27 11:58:50 +05:30
parent 90ffb7318a
commit 050b113e01
Signed by untrusted user: shekhar-cis
GPG Key ID: 8B2A6C8D5F7F1635
3 changed files with 4 additions and 5 deletions

0
Running Normal file
View File

View File

@ -61,7 +61,7 @@ class AddressBook(TeleniumTestProcess):
def test_cancel_addressbook_popup(self):
"""Cancel Address"""
print("=====================Test -Cancel Address Add Popup=====================")
# Click on Account-Plus Icon to opeb popup for add Address
# Click on Account-Plus Icon to open popup for add Address
self.cli.execute('app.addingtoaddressbook()')
# Add Label to label Field
self.cli.setattr('//GrashofPopup/BoxLayout[0]/MDTextField[0]', 'text', 'test2')
@ -121,7 +121,6 @@ class AddressBook(TeleniumTestProcess):
self.assertExists("//AddressBook[@name~=\"addressbook\"]", timeout=2)
# Swipe to delete
self.assertTrue('//MDList[0]/CutsomSwipeToDeleteItem[0]//MDIconButton[@disabled]', 'True')
self.cli.sleep(1)
self.drag(
'//MDList[0]//TwoLineAvatarIconListItem[0]/BoxLayout[1]',
'//MDList[0]//TwoLineAvatarIconListItem[0]/BoxLayout[2]')

View File

@ -6,7 +6,7 @@ class TrashMessage(TeleniumTestProcess):
def test_delete_trash_message(self):
"""Delete Trash message permanently from trash message listing"""
print("=====================Test -Delete Message From Trash Message Listing=====================")
self.cli.sleep()
self.cli.sleep(8)
# this is for opening Nav drawer
self.cli.wait_click('//MDActionTopAppBarButton[@icon=\"menu\"]', timeout=5)
# checking state of Nav drawer