on xenial help sign in
AP fixes
d06ea16Nick Dedekind
tests/autopilot/unity8/indicators/tests/test_indicators.py+1−1
@@ -61,7 +61,7 @@ class IndicatorExistsTestCase(IndicatorTestCase):
61 self.skipTest('Nexus 10 does not have bluetooth at the moment.')
61 self.skipTest('Nexus 10 does not have bluetooth at the moment.')
62
62
63 def test_indicator_exists(self):
63 def test_indicator_exists(self):
64− self.main_window._get_indicator_widget(
64+ self.main_window._get_indicator_panel_item(
65 self.indicator_name
65 self.indicator_name
66 )
66 )
67
67
tests/autopilot/unity8/shell/emulators/main_window.py+5−5
@@ -75,15 +75,15 @@ class QQuickView(emulators.UnityEmulatorBase):
75 def get_pinentryField(self):
75 def get_pinentryField(self):
76 return self.select_single(objectName="pinentryField")
76 return self.select_single(objectName="pinentryField")
77
77
78− def _get_indicator_widget(self, indicator_name):
78+ def _get_indicator_panel_item(self, indicator_name):
79 return self.select_single(
79 return self.select_single(
80− 'DefaultIndicatorWidget',
80+ 'IndicatorItem',
81− objectName=indicator_name+'-widget'
81+ objectName=indicator_name+'-panelItem'
82 )
82 )
83
83
84 def _get_indicator_page(self, indicator_name):
84 def _get_indicator_page(self, indicator_name):
85 return self.select_single(
85 return self.select_single(
86− 'DefaultIndicatorPage',
86+ 'IndicatorPage',
87 objectName=indicator_name+'-page'
87 objectName=indicator_name+'-page'
88 )
88 )
89
89
@@ -93,7 +93,7 @@ class QQuickView(emulators.UnityEmulatorBase):
93
93
94 :returns: The indicator page.
94 :returns: The indicator page.
95 """
95 """
96− widget = self._get_indicator_widget(indicator_name)
96+ widget = self._get_indicator_panel_item(indicator_name)
97 start_x, start_y = input.get_center_point(widget)
97 start_x, start_y = input.get_center_point(widget)
98 end_x = start_x
98 end_x = start_x
99 end_y = self.height
99 end_y = self.height