Update kivy network test
This commit is contained in:
parent
346d157b5c
commit
b3627ff5a6
|
@ -29,18 +29,15 @@ class CreateRandomAddress(TeleniumTestProcess):
|
||||||
)
|
)
|
||||||
# Assert the checkbox is rendered
|
# Assert the checkbox is rendered
|
||||||
self.assertExists(
|
self.assertExists(
|
||||||
'//Login//Screen[@name=\"check_screen\"]//AnchorLayout[1]/Check', timeout=5)
|
'//Login//Screen[@name=\"check_screen\"]//AnchorLayout[1]/Check[@active=false]', 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
|
# Clicking on the checkbox
|
||||||
self.cli.wait_click(
|
self.cli.wait_click(
|
||||||
'//Login//Screen[@name=\"check_screen\"]//AnchorLayout[1]/Check', timeout=5
|
'//Login//Screen[@name=\"check_screen\"]//AnchorLayout[1]/Check', timeout=5
|
||||||
)
|
)
|
||||||
# Checking Status of checkbox after click
|
# Checking Status of checkbox after click
|
||||||
self.assertEqual(self.cli.getattr(
|
self.assertExists(
|
||||||
'//Login//Screen[@name=\"check_screen\"]//AnchorLayout[1]/Check', 'active'), True
|
'//Login//Screen[@name=\"check_screen\"]//AnchorLayout[1]/Check[@active=true]', timeout=5
|
||||||
)
|
)
|
||||||
# Checking the Proceed Next button is rendered or not
|
# Checking the Proceed Next button is rendered or not
|
||||||
self.assertExists(
|
self.assertExists(
|
||||||
|
|
|
@ -12,7 +12,7 @@ class NetworkStatusScreen(TeleniumTestProcess):
|
||||||
def test_network_status(self):
|
def test_network_status(self):
|
||||||
"""Show NetworkStatus"""
|
"""Show NetworkStatus"""
|
||||||
# This is for checking Current screen
|
# This is for checking Current screen
|
||||||
self.assert_wait_no_except('//ScreenManager[@current]', timeout=15, value='login')
|
self.assert_wait_no_except('//ScreenManager[@current]', timeout=15, value='inbox')
|
||||||
# Method to open side navbar
|
# Method to open side navbar
|
||||||
# due to rapid transition effect, it doesn't click on menu-bar
|
# due to rapid transition effect, it doesn't click on menu-bar
|
||||||
self.open_side_navbar()
|
self.open_side_navbar()
|
||||||
|
|
Reference in New Issue
Block a user