Refactor test create_random_address
This commit is contained in:
parent
c80529eb9e
commit
346d157b5c
|
@ -113,7 +113,6 @@
|
||||||
id: identity_dropdown
|
id: identity_dropdown
|
||||||
pos_hint:{"x":0,"y":0}
|
pos_hint:{"x":0,"y":0}
|
||||||
name: "identity_dropdown"
|
name: "identity_dropdown"
|
||||||
text: 'Select Address'
|
|
||||||
option_cls: Factory.get("MySpinnerOption")
|
option_cls: Factory.get("MySpinnerOption")
|
||||||
font_size: '12.5sp'
|
font_size: '12.5sp'
|
||||||
text: app.getDefaultAccData(self)
|
text: app.getDefaultAccData(self)
|
||||||
|
@ -219,6 +218,8 @@ MDNavigationLayout:
|
||||||
id: scr_mngr
|
id: scr_mngr
|
||||||
size_hint_y: None
|
size_hint_y: None
|
||||||
height: root.height - toolbar.height
|
height: root.height - toolbar.height
|
||||||
|
Inbox:
|
||||||
|
id:id_inbox
|
||||||
Login:
|
Login:
|
||||||
id:sc6
|
id:sc6
|
||||||
Random:
|
Random:
|
||||||
|
@ -235,8 +236,6 @@ MDNavigationLayout:
|
||||||
id:id_networkstat
|
id:id_networkstat
|
||||||
Setting:
|
Setting:
|
||||||
id:id_settings
|
id:id_settings
|
||||||
Inbox:
|
|
||||||
id:id_inbox
|
|
||||||
Sent:
|
Sent:
|
||||||
id:id_sent
|
id:id_sent
|
||||||
Trash:
|
Trash:
|
||||||
|
|
|
@ -22,6 +22,27 @@ class CreateRandomAddress(TeleniumTestProcess):
|
||||||
"""Click on Proceed Button to Proceed to Next Screen."""
|
"""Click on Proceed Button to Proceed to Next Screen."""
|
||||||
# Checking current Screen(Login screen)
|
# Checking current Screen(Login screen)
|
||||||
self.assert_wait_no_except('//ScreenManager[@current]', timeout=15, value='login')
|
self.assert_wait_no_except('//ScreenManager[@current]', timeout=15, value='login')
|
||||||
|
# Dragging from sent to PROS: to NOTE:
|
||||||
|
self.drag(
|
||||||
|
'''//Login//Screen//ContentHead[1][@section_name=\"PROS:\"]''',
|
||||||
|
'''//Login//Screen//ContentHead[0][@section_name=\"NOTE:\"]'''
|
||||||
|
)
|
||||||
|
# Assert the checkbox is rendered
|
||||||
|
self.assertExists(
|
||||||
|
'//Login//Screen[@name=\"check_screen\"]//AnchorLayout[1]/Check', timeout=5)
|
||||||
|
# Checking Status of checkbox before click
|
||||||
|
self.assertEqual(self.cli.getattr(
|
||||||
|
'//Login//Screen[@name=\"check_screen\"]//AnchorLayout[1]/Check[@active]', 'active'), False
|
||||||
|
)
|
||||||
|
# Clicking on the checkbox
|
||||||
|
self.cli.wait_click(
|
||||||
|
'//Login//Screen[@name=\"check_screen\"]//AnchorLayout[1]/Check', timeout=5
|
||||||
|
)
|
||||||
|
# Checking Status of checkbox after click
|
||||||
|
self.assertEqual(self.cli.getattr(
|
||||||
|
'//Login//Screen[@name=\"check_screen\"]//AnchorLayout[1]/Check', 'active'), True
|
||||||
|
)
|
||||||
|
# Checking the Proceed Next button is rendered or not
|
||||||
self.assertExists(
|
self.assertExists(
|
||||||
'''//Login//Screen[@name=\"check_screen\"]'''
|
'''//Login//Screen[@name=\"check_screen\"]'''
|
||||||
'''//MDFillRoundFlatIconButton[@text=\"Proceed Next\"]''', timeout=5
|
'''//MDFillRoundFlatIconButton[@text=\"Proceed Next\"]''', timeout=5
|
||||||
|
|
Reference in New Issue
Block a user