23 DEFAULT_LANGUAGE =
'English (United States)'
24 DEFAULT_PHONESIM_CONFIG_FILE =
'/usr/share/phonesim/default.xml'
25 DEFAULT_SECURITY_METHOD =
'Passcode'
29 """ Autopilot test for completing settings wizard """
34 fixture_setup.SettingsWizard(
True))
35 self.
unity = self.launch_unity()
38 def _get_settings_wizard(self):
39 return self.unity.wait_select_single(Wizard)
41 def _test_language_page(self):
42 """ Get the language page, check the default language and continue """
43 language_page = self.wizard.get_language_page()
44 default_selection = language_page.get_selected_language()
45 self.assertEqual(default_selection, DEFAULT_LANGUAGE)
46 return language_page.continue_()
48 def _test_location_page(self, location_page):
49 return location_page.continue_()
51 def _test_password_page(self, password_page):
52 """ Check default selection for password type and change
53 password type to swipe to keep this test as uncomplicated
55 default_selection = password_page.get_selected_security_option()
56 self.assertEqual(default_selection, DEFAULT_SECURITY_METHOD)
57 password_page.select_security_option(
'Swipe')
58 return password_page.continue_()
60 def _test_reporting_page(self, reporting_page):
61 return reporting_page.continue_()
63 def _test_sim_page(self, sim_page):
64 return sim_page.skip()
66 def _test_wifi_connect_page(self, wifi_connect_page):
67 if wifi_connect_page.is_any_network_checked()
or not \
68 wifi_connect_page.is_any_network_found():
69 return wifi_connect_page.continue_()
71 return wifi_connect_page.skip()
74 """ Most basic test of the settings wizard. Skip all skipable pages """
80 password_page = next_page
85 if locationPageEnabled:
86 location_page = next_page
87 if reportingPageEnabled:
90 finish_page = next_page
92 if reporting_page
is not None:
95 finish_page = next_page
99 self.wizard_helper.is_settings_wizard_enabled())
def _test_location_page(self, location_page)
def _test_language_page(self)
def _test_password_page(self, password_page)
def _get_settings_wizard(self)
def _test_sim_page(self, sim_page)
def _test_wifi_connect_page(self, wifi_connect_page)
def test_skipping_through_wizard(self)
def _test_reporting_page(self, reporting_page)