on xenial help sign in
Establish Indicator emulator under shell main_window emulator class.
commit5dd0d2e8cb29b53400d1dc22ac1759cb82d034d1 authorAllan LeSage <allan.lesage@canonical.com> dateMon 21 Oct 2013, 21:13 (13 years ago) parentf018eb1
2 files changed+17−8
tests/autopilot/unity8/shell/emulators/main_window.py+9 tests/autopilot/unity8/shell/tests/test_indicators.py+8−8
tests/autopilot/unity8/shell/emulators/main_window.py+9
@@ -99,3 +99,12 @@ class MainWindow(object):
9999 "Tab",
100100 objectName=indicator_name
101101 )
102+
103+
104+class Indicators:
105+ network = 'indicator-network'
106+ location = 'indicator-location'
107+ messaging = 'indicator-messages'
108+ power = 'indicator-power'
109+ sound = 'indicator-sound'
110+ datetime = 'indicator-datetime'
tests/autopilot/unity8/shell/tests/test_indicators.py+8−8
@@ -20,21 +20,21 @@
2020from __future__ import absolute_import
2121
2222from unity8.shell.tests import UnityTestCase
23−
23+from unity8.shell.emulators import Indicators
2424
2525class IndicatorTestCase(UnityTestCase):
2626
2727 scenarios = [
28− ('Network', dict(indicator_name='indicator-network')),
29− ('Location', dict(indicator_name='indicator-location')),
30− ('Messaging', dict(indicator_name='indicator-messages')),
31− ('Power', dict(indicator_name='indicator-power')),
32− ('Sound', dict(indicator_name='indicator-sound')),
33− ('Datetime', dict(indicator_name='indicator-datetime')),
28+ ('Network', dict(indicator_name=Indicators.network)),
29+ ('Location', dict(indicator_name=Indicators.location)),
30+ ('Messaging', dict(indicator_name=Indicators.messaging)),
31+ ('Power', dict(indicator_name=Indicators.power)),
32+ ('Sound', dict(indicator_name=Indicators.sound)),
33+ ('Datetime', dict(indicator_name=Indicators.datetime)),
3434 ]
3535
3636 def test_indicator_exists(self):
37− """The specific indicators tab can be found."""
37+ """The tab of a given indicator can be found."""
3838
3939 self.launch_unity()
4040 self.main_window.get_greeter().swipe()