on xenial help sign in
Added indicators-client to AP tests
commit23ed9deede45027acf0acb471864d77aead66870 authorNick Dedekind <nicholas.dedekind@gmail.com> dateTue 2 Jul 2013, 15:30 (13 years ago) parent8261565
4 files changed+5−3
CMakeLists.txt+1 debian/unity8-autopilot.install+1 tests/autopilot/indicators_client/emulators/main_window.py+1−1 tests/autopilot/indicators_client/tests/test_power.py+2−2
CMakeLists.txt+1
@@ -91,6 +91,7 @@ enable_testing()
9191# Autopilot tests
9292include(autopilot)
9393declare_autopilot_test(unity8 ${CMAKE_SOURCE_DIR}/tests/autopilot/)
94+declare_autopilot_test(indicators_client ${CMAKE_SOURCE_DIR}/tests/autopilot/)
9495
9596add_subdirectory(tests)
9697
debian/unity8-autopilot.install+1
@@ -1 +1,2 @@
11tests/autopilot/unity8/* usr/lib/python2.7/dist-packages/unity8/
2+tests/autopilot/indicators_client/* usr/lib/python2.7/dist-packages/indicators_client/
tests/autopilot/indicators_client/emulators/main_window.py+1−1
@@ -26,4 +26,4 @@ class MainWindow(object):
2626
2727 def get_power_menu(self):
2828 """Get the power menu from the list"""
29− return self.app.select_single("BasicMenu", objectName="indicator-power");
29+ return self.app.select_single("BasicMenuItem", objectName="indicator-power");
tests/autopilot/indicators_client/tests/test_power.py+2−2
@@ -67,7 +67,7 @@ class TestDisplayMenus(IndicatorsTestCase):
6767 def test_auto_bright_switch(self):
6868 """Test the auto-bright switch"""
6969
70− auto_brightness = self.app.select_single("SwitchMenu", objectName="auto-brightness")
70+ auto_brightness = self.app.select_single("SwitchMenuItem", objectName="auto-brightness")
7171 self.assertThat(auto_brightness, NotEquals(None))
7272
7373 old_ab_value = auto_brightness.checked
@@ -80,7 +80,7 @@ class TestDisplayMenus(IndicatorsTestCase):
8080 def test_brightness_slider(self):
8181 """Test the auto-bright switch"""
8282
83− brightness_menu = self.app.select_single("SliderMenu", objectName="brightness")
83+ brightness_menu = self.app.select_single("SliderMenuItem", objectName="brightness")
8484 self.assertThat(brightness_menu, NotEquals(None))
8585
8686 old_ab_value = brightness_menu.value