on xenial help sign in
Merged with prerequisite.
fa5edf7Leo Arias
tests/autopilot/unity8/greeter/tests/__init__.py+2−2
@@ -23,6 +23,6 @@ from unity8.shell.tests import UnityTestCase
23
23
24class GreeterTestCase(UnityTestCase):
24class GreeterTestCase(UnityTestCase):
25 def get_shell(self, unity_proxy):
25 def get_shell(self, unity_proxy):
26− main_window = \
26+ main_window = (
27− unity_proxy.select_single(main_window_emulator.QQuickView)
27+ unity_proxy.select_single(main_window_emulator.QQuickView))
28 return main_window.select_single('Shell')
28 return main_window.select_single('Shell')
tests/autopilot/unity8/indicators/__init__.py+3−3
@@ -67,9 +67,9 @@ class Indicator():
67 objectName=self._name+'-page')
67 objectName=self._name+'-page')
68
68
69 def _make_indicator_icon_visible(self):
69 def _make_indicator_icon_visible(self):
70− indicators_bar_flickable = self._main_window.select_single(
70+ indicators_bar = self._main_window.select_single('IndicatorsBar')
71− 'IndicatorsBar').select_single(
71+ indicators_bar_flickable = indicators_bar.select_single(
72− ubuntuuitoolkit.QQuickFlickable, objectName='flickable')
72+ ubuntuuitoolkit.QQuickFlickable, objectName='flickable')
73 self._swipe_flickable_to_x_end(indicators_bar_flickable)
73 self._swipe_flickable_to_x_end(indicators_bar_flickable)
74
74
75 def _swipe_flickable_to_x_end(self, flickable):
75 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):
168 headerContainer.contentY.wait_for(0)
168 headerContainer.contentY.wait_for(0)
169 search_text_field = self._get_search_text_field()
169 search_text_field = self._get_search_text_field()
170 search_text_field.write(query)
170 search_text_field.write(query)
171+ self.select_single(
171− self.select_single(objectName="processingIndicator")\
172+ objectName="processingIndicator").visible.wait_for(False)
172− .visible.wait_for(False)
173
173
174 def _get_search_text_field(self):
174 def _get_search_text_field(self):
175 page_header = self._get_current_page_header()
175 page_header = self._get_current_page_header()
tests/autopilot/unity8/shell/tests/test_tutorial.py+1
@@ -25,6 +25,7 @@ from unity8.shell import (
25 tests
25 tests
26)
26)
27# unused import to load the tutorial emulators custom proxy objects.
27# unused import to load the tutorial emulators custom proxy objects.
28+from unity8.shell.emulators import tutorial as tutorial_emulator # NOQA
28
29
29
30
30class TutorialTestCase(tests.UnityTestCase):
31class TutorialTestCase(tests.UnityTestCase):