29 lines
1.2 KiB
Python
29 lines
1.2 KiB
Python
|
# pylint: disable=too-few-public-methods
|
||
|
|
||
|
from .telenium_process import TeleniumTestProcess
|
||
|
from .common import skip_screen_checks
|
||
|
|
||
|
|
||
|
class SettingScreen(TeleniumTestProcess):
|
||
|
"""Setting Screen Functionality Testing"""
|
||
|
|
||
|
@skip_screen_checks
|
||
|
def test_setting_screen(self):
|
||
|
"""Show Setting Screen"""
|
||
|
print("=====================Test -Show Setting Screen=====================")
|
||
|
self.cli.sleep(3)
|
||
|
# this is for checking current screen
|
||
|
self.assertExists("//Inbox[@name~=\"inbox\"]", timeout=2)
|
||
|
# this is for opening Nav drawer
|
||
|
self.cli.wait_click('//MDActionTopAppBarButton[@icon=\"menu\"]', timeout=2)
|
||
|
# checking state of Nav drawer
|
||
|
self.assertExists("//MDNavigationDrawer[@state~=\"open\"]", timeout=2)
|
||
|
# this is for scrolling Nav drawer
|
||
|
self.drag("//NavigationItem[@text=\"Sent\"]", "//NavigationItem[@text=\"Inbox\"]")
|
||
|
# assert for checking scroll funcation
|
||
|
self.assertCheckScrollDown('//ContentNavigationDrawer//ScrollView[0]', timeout=3)
|
||
|
# this is for opening setting screen
|
||
|
self.cli.wait_click('//NavigationItem[@text=\"Settings\"]', timeout=1)
|
||
|
# Checking current screen
|
||
|
self.assertExists("//Setting[@name~=\"set\"]", timeout=2)
|