on xenial help sign in
Fix more
commitc938d62753f3587b35320428f8bbc0512a96ac0b authorMichał Sawicz <michal.sawicz@canonical.com> dateMon 20 Apr 2015, 18:04 (11 years ago) parentf7eb3ee
3 files changed+6−5
tests/autopilot/unity8/indicators/__init__.py+3−3 tests/autopilot/unity8/shell/emulators/dash.py+2−2 tests/autopilot/unity8/shell/tests/test_tutorial.py+1
tests/autopilot/unity8/indicators/__init__.py+3−3
@@ -67,9 +67,9 @@ class Indicator():
6767 objectName=self._name+'-page')
6868
6969 def _make_indicator_icon_visible(self):
70− indicators_bar_flickable = self._main_window.select_single(
71− 'IndicatorsBar').select_single(
72− ubuntuuitoolkit.QQuickFlickable, objectName='flickable')
70+ indicators_bar = self._main_window.select_single('IndicatorsBar')
71+ indicators_bar_flickable = indicators_bar.select_single(
72+ ubuntuuitoolkit.QQuickFlickable, objectName='flickable')
7373 self._swipe_flickable_to_x_end(indicators_bar_flickable)
7474
7575 def _swipe_flickable_to_x_end(self, flickable):
tests/autopilot/unity8/shell/emulators/dash.py+2−2
@@ -168,8 +168,8 @@ class Dash(emulators.UnityEmulatorBase):
168168 headerContainer.contentY.wait_for(0)
169169 search_text_field = self._get_search_text_field()
170170 search_text_field.write(query)
171− self.select_single(objectName="processingIndicator")\
172− .visible.wait_for(False)
171+ self.select_single(
172+ objectName="processingIndicator").visible.wait_for(False)
173173
174174 def _get_search_text_field(self):
175175 page_header = self._get_current_page_header()
tests/autopilot/unity8/shell/tests/test_tutorial.py+1
@@ -25,6 +25,7 @@ from unity8.shell import (
2525 tests
2626)
2727# unused import to load the tutorial emulators custom proxy objects.
28+from unity8.shell.emulators import tutorial as tutorial_emulator # NOQA
2829
2930
3031class TutorialTestCase(tests.UnityTestCase):