summaryrefslogtreecommitdiff
path: root/tests/testcases/state.py
blob: 108cf29f1f9bfa7f4e4f7f51403ea177a3917f93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
'''
Validates State view
'''

import common as c  
from time import sleep
import app

def run_tests(self):
    app.tap_menu_js()
    c.log ('Validating state with restart')
    c.click_item('testaut_menu_state')
    c.click_item('testaut_state_restart_button')
    c.click_popup(save_screenshot=True, save_screenshot_file='state-restart-prompt.png')
    # Wait for state change to show
    sleep(2)
    c.take_screenshot(None,'state-after-restart.png')