Refactor Kivy-payment screen test
This commit is contained in:
parent
47dffae19e
commit
2ef6463439
|
@ -10,14 +10,8 @@ class PaymentScreen(TeleniumTestProcess):
|
||||||
"""Select Subscription From List of Subscriptions"""
|
"""Select Subscription From List of Subscriptions"""
|
||||||
# This is for checking Current screen
|
# This is for checking Current screen
|
||||||
self.assert_wait_no_except('//ScreenManager[@current]', timeout=15, value='inbox')
|
self.assert_wait_no_except('//ScreenManager[@current]', timeout=15, value='inbox')
|
||||||
# This is for checking the Side nav Bar id closed
|
# Method to open the side navbar
|
||||||
self.assertExists('//MDNavigationDrawer[@status~=\"closed\"]', timeout=5)
|
self.open_side_navbar()
|
||||||
# This is for checking the menu button is appeared
|
|
||||||
self.assertExists('//MDActionTopAppBarButton[@icon~=\"menu\"]', timeout=5)
|
|
||||||
# this is for opening Nav drawer
|
|
||||||
self.cli.wait_click('//MDActionTopAppBarButton[@icon=\"menu\"]', timeout=5)
|
|
||||||
# checking state of Nav drawer
|
|
||||||
self.assertExists("//MDNavigationDrawer[@state~=\"open\"]", timeout=5)
|
|
||||||
# Dragging from sent to inbox to get Payment tab
|
# Dragging from sent to inbox to get Payment tab
|
||||||
self.drag("//NavigationItem[@text=\"Sent\"]", "//NavigationItem[@text=\"Inbox\"]")
|
self.drag("//NavigationItem[@text=\"Sent\"]", "//NavigationItem[@text=\"Inbox\"]")
|
||||||
# assert for checking scroll function
|
# assert for checking scroll function
|
||||||
|
|
Reference in New Issue
Block a user