~artmello/ubuntu-system-settings/category-list-view

« back to all changes in this revision

Viewing changes to tests/autopilot/ubuntu_system_settings/__init__.py

  • Committer: Bileto Bot
  • Author(s): Jonas G. Drange, Ken VanDine
  • Date: 2016-12-07 15:16:59 UTC
  • mfrom: (1728.1.9 main_list_view)
  • Revision ID: ci-train-bot@canonical.com-20161207151659-1geuqsfkt82mth1m
* Replaces the grid with a list
* Replaces MainWindow search with PageHeader search
* Adds testing of new PageHeader search (and mocks PluginManager. This is a bit hacky, since SystemSettings implicitly provides PluginManager in main.cpp)

Approved by: Jonas G. Drange, Ken VanDine

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
        self.scroll_to(obj)
156
156
        self.pointing_device.click_object(obj)
157
157
 
158
 
    def click_header_action(self, action):
159
 
        """Click the action 'action' on the header"""
160
 
        main_view = self.get_root_instance().select_single(
161
 
            objectName='systemSettingsMainView')
162
 
        header = main_view.select_single('AppHeader')
163
 
        header.click_action_button(action)
164
 
 
165
158
    @property
166
159
    def system_settings_page(self):
167
160
        return self.select_single(objectName='systemSettingsPage')