~canonical-platform-qa/ubuntu-system-tests/app-launch-introspect

« back to all changes in this revision

Viewing changes to ubuntu_system_tests/helpers/system_settings/app.py

  • Committer: Richard Huddie
  • Date: 2017-03-14 09:53:15 UTC
  • Revision ID: richard.huddie@canonical.com-20170314095315-s2d81om5jkouyxpv
revert the system settings id changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    launch_application_from_apps_scope
29
29
)
30
30
 
31
 
APP_PROCESS = 'system-settings'
 
31
APP = 'system-settings'
32
32
APP_NAME = 'System Settings'
 
33
APP_WIN_ID = 'ubuntu-system-settings'
33
34
APP_ID = 'ubuntu-system-settings'
34
35
 
35
36
 
53
54
 
54
55
def get_main_view():
55
56
    from ubuntu_system_tests.helpers.system_settings import cpo  # NOQA
56
 
    pid = get_process_id(APP_PROCESS)
 
57
    pid = get_process_id(APP)
57
58
    return autopilot.get_proxy_object(pid=pid).main_view
58
59
 
59
60
 
82
83
 
83
84
def is_system_settings_running():
84
85
    """ Indicate if the system settings is currently running """
85
 
    return processes.is_process_running(APP_PROCESS)
 
86
    return processes.is_process_running(APP)
86
87
 
87
88
 
88
89
def get_system_settings_proxy():
93
94
 
94
95
    """
95
96
    from ubuntu_system_tests.helpers.system_settings import cpo  # NOQA
96
 
    proxy = autopilot.get_proxy_object(processes.get_process_id(APP_PROCESS))
 
97
    proxy = autopilot.get_proxy_object(processes.get_process_id(APP))
97
98
    return proxy.main_view