on xenial help sign in
Move getting the indicator page to main_window emulator.
commitc0c316dd3b16042fbb66c91ad7f24df68fd2c7dc authorAllan LeSage <allan.lesage@canonical.com> dateWed 26 Mar 2014, 18:05 (13 years ago) parent8be00cd
2 files changed+9−4
tests/autopilot/unity8/indicators/tests/test_indicators.py+3−4 tests/autopilot/unity8/shell/emulators/main_window.py+6
tests/autopilot/unity8/indicators/tests/test_indicators.py+3−4
@@ -91,8 +91,7 @@ class IndicatorPageTitleMatchesWidgetTestCase(IndicatorTestCase):
9191 unlock_unity(unity_proxy)
9292 widget = self.main_window.get_indicator_widget(self.indicator_name)
9393 widget.swipe_to_open_indicator(self.main_window)
94− self.main_window.wait_select_single(
95− "DefaultIndicatorPage",
96− title=self.title,
97− visible=True
94+ indicator_page = self.main_window.get_indicator_page(
95+ indicator_title=self.title
9896 )
97+ self.assertTrue(indicator_page.visible)
tests/autopilot/unity8/shell/emulators/main_window.py+6
@@ -94,6 +94,12 @@ class QQuickView(emulators.UnityEmulatorBase):
9494 objectName=indicator_name+'-widget'
9595 )
9696
97+ def get_indicator_page(self, indicator_title):
98+ return self.select_single(
99+ 'DefaultIndicatorPage',
100+ title=indicator_title
101+ )
102+
97103 def get_shell_background(self):
98104 return self.select_single(
99105 "CrossFadeImage", objectName="backgroundImage")