~om26er/ubuntu-weather-app/fix_autopilot_tests_touch

« back to all changes in this revision

Viewing changes to tests/autopilot/ubuntu_weather_app/tests/test_settings.py

fix for broken settings test.

Approved by David Planella, Ubuntu Phone Apps Jenkins Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
    def _click_confirm(self):
39
39
        """Clicks the confirm button"""
40
 
        self.pointing_device.click_object(self.main_window.app.select_many('Button')[2])
 
40
        self.pointing_device.click_object(self.main_window.app.select_many('Button')[1])
41
41
 
42
42
    def _click_cancel(self):
43
43
        """Clicks the cancel button"""
44
 
        self.pointing_device.click_object(self.main_window.app.select_many('Button')[1])
 
44
        self.pointing_device.click_object(self.main_window.app.select_many('Button')[0])
45
45
 
46
46
    def _check_units(self, units):
47
47
        """Checks selected units by values from the first location tab"""