enhanced address code quality

This commit is contained in:
shekhar-cis 2021-09-07 16:39:16 +05:30
parent fe341795c9
commit d7e31c879f
Signed by untrusted user: shekhar-cis
GPG Key ID: 8B2A6C8D5F7F1635

View File

@ -1,10 +1,9 @@
from .telenium_process import TeleniumTestProcess from .telenium_process import TeleniumTestProcess
from .common import ordered from .common import ordered
data = [ test_address = {
'BM-2cWmjntZ47WKEUtocrdvs19y5CivpKoi1h', 'recipient': 'BM-2cVpswZo8rWLXDVtZEUNcDQvnvHJ6TLRYr'
'BM-2cVpswZo8rWLXDVtZEUNcDQvnvHJ6TLRYr' }
]
class MyAddressScreen(TeleniumTestProcess): class MyAddressScreen(TeleniumTestProcess):
@ -49,7 +48,7 @@ class MyAddressScreen(TeleniumTestProcess):
self.assertExists("//ScreenManager[@current=\"create\"]", timeout=2) self.assertExists("//ScreenManager[@current=\"create\"]", timeout=2)
# Entering Receiver Address # Entering Receiver Address
self.cli.setattr( self.cli.setattr(
'//DropDownWidget/ScrollView[0]//MyTextInput[0]', "text", data[1]) '//DropDownWidget/ScrollView[0]//MyTextInput[0]', "text", test_address['recipient'])
# Checking Receiver Address filled or not # Checking Receiver Address filled or not
self.assertNotEqual('//DropDownWidget//MyTextInput[0]', '') self.assertNotEqual('//DropDownWidget//MyTextInput[0]', '')
# ADD SUBJECT # ADD SUBJECT
@ -68,7 +67,7 @@ class MyAddressScreen(TeleniumTestProcess):
self.assertExists("//ScreenManager[@current=\"inbox\"]", timeout=7) self.assertExists("//ScreenManager[@current=\"inbox\"]", timeout=7)
@ordered @ordered
def test_show_Qrcode(self): def test_show_qrcode(self):
"""Show the Qr code of selected address""" """Show the Qr code of selected address"""
# This is for checking the Side nav Bar is closed # This is for checking the Side nav Bar is closed
self.assertExists('//MDNavigationDrawer[@status~=\"closed\"]', timeout=5) self.assertExists('//MDNavigationDrawer[@status~=\"closed\"]', timeout=5)