Refactor list all messages kivy test
This commit is contained in:
parent
113808a60c
commit
44d42c637d
|
@ -12,14 +12,8 @@ class AllMailMessage(TeleniumTestProcess):
|
||||||
"""Show All Messages on Mail Screen/Window"""
|
"""Show All Messages on Mail Screen/Window"""
|
||||||
# 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 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=3)
|
|
||||||
# checking state of Nav drawer
|
|
||||||
self.assertExists("//MDNavigationDrawer[@state~=\"open\"]", timeout=5)
|
|
||||||
# this is for opening All Mail screen
|
# this is for opening All Mail screen
|
||||||
self.cli.wait_click('//NavigationItem[@text=\"All Mails\"]', timeout=5)
|
self.cli.wait_click('//NavigationItem[@text=\"All Mails\"]', timeout=5)
|
||||||
# Assert for checking Current Screen(All mail)
|
# Assert for checking Current Screen(All mail)
|
||||||
|
|
Reference in New Issue
Block a user