on xenial help sign in
AP fixes
commitd06ea16e62cae87dbb05ad363a10fa6e19ed9b46 authorNick Dedekind <nick.dedekind@canonical.com> dateThu 9 Oct 2014, 10:53 (12 years ago) parent344ec10
2 files changed+6−6
tests/autopilot/unity8/indicators/tests/test_indicators.py+1−1 tests/autopilot/unity8/shell/emulators/main_window.py+5−5
tests/autopilot/unity8/indicators/tests/test_indicators.py+1−1
@@ -61,7 +61,7 @@ class IndicatorExistsTestCase(IndicatorTestCase):
6161 self.skipTest('Nexus 10 does not have bluetooth at the moment.')
6262
6363 def test_indicator_exists(self):
64− self.main_window._get_indicator_widget(
64+ self.main_window._get_indicator_panel_item(
6565 self.indicator_name
6666 )
6767
tests/autopilot/unity8/shell/emulators/main_window.py+5−5
@@ -75,15 +75,15 @@ class QQuickView(emulators.UnityEmulatorBase):
7575 def get_pinentryField(self):
7676 return self.select_single(objectName="pinentryField")
7777
78− def _get_indicator_widget(self, indicator_name):
78+ def _get_indicator_panel_item(self, indicator_name):
7979 return self.select_single(
80− 'DefaultIndicatorWidget',
81− objectName=indicator_name+'-widget'
80+ 'IndicatorItem',
81+ objectName=indicator_name+'-panelItem'
8282 )
8383
8484 def _get_indicator_page(self, indicator_name):
8585 return self.select_single(
86− 'DefaultIndicatorPage',
86+ 'IndicatorPage',
8787 objectName=indicator_name+'-page'
8888 )
8989
@@ -93,7 +93,7 @@ class QQuickView(emulators.UnityEmulatorBase):
9393
9494 :returns: The indicator page.
9595 """
96− widget = self._get_indicator_widget(indicator_name)
96+ widget = self._get_indicator_panel_item(indicator_name)
9797 start_x, start_y = input.get_center_point(widget)
9898 end_x = start_x
9999 end_y = self.height