Payment test case[added attribute to check state of sub tabs]
This commit is contained in:
parent
81612fe4cf
commit
28fe3f9f28
|
@ -28,7 +28,14 @@ class NetworkStatusScreen(TeleniumTestProcess):
|
|||
self.cli.wait_click('//NavigationItem[@text=\"Network status\"]', timeout=5)
|
||||
# checking current screen
|
||||
self.assertExists("//ScreenManager[@current=\"networkstat\"]", timeout=5)
|
||||
# Checking the state of "Total Connection" tab
|
||||
self.assertExists(
|
||||
'//NetworkStat/MDTabs[0]//MDTabsLabel[@text=\"Total connections\"][@state=\"down\"]', timeout=3)
|
||||
# Checking the state of "Processes" tab
|
||||
self.assertExists('//NetworkStat/MDTabs[0]//MDTabsLabel[@text=\"Processes\"][@state=\"normal\"]', timeout=3)
|
||||
# Checking the "Tab" is rendered
|
||||
self.assertExists('//NetworkStat/MDTabs[0]//MDTabsLabel[@text=\"Processes\"]', timeout=4)
|
||||
# Clicking on Processes Tab
|
||||
self.cli.wait_click('//NetworkStat/MDTabs[0]//MDTabsLabel[@text=\"Processes\"]', timeout=3)
|
||||
# this is for checking current sub-tab
|
||||
self.assertTrue('//NetworkStat/RelativeLayout[1]/Tab[@disabled]', 'False')
|
||||
self.cli.wait_click('//NetworkStat/MDTabs[0]//MDTabsLabel[@text=\"Processes\"]', timeout=4)
|
||||
# Checking the state of "Processes" tab
|
||||
self.assertExists('//NetworkStat/MDTabs[0]//MDTabsLabel[@text=\"Processes\"][@state=\"normal\"]', timeout=3)
|
||||
|
|
Reference in New Issue
Block a user