on xenial help sign in
Skip slider due to bug #1203808 and add change skip reason for passphrase entry - bug #1203788
commitea6bddc6e458e580f163cdf298949105e65176d0 authorMichał Sawicz <michal.sawicz@canonical.com> dateMon 22 Jul 2013, 20:44 (13 years ago) parent8378f4d
2 files changed+5−2
tests/autopilot/unity8/indicators_client/tests/test_battery.py+3 tests/autopilot/unity8/shell/tests/test_lock_screen.py+2−2
tests/autopilot/unity8/indicators_client/tests/test_battery.py+3
@@ -8,6 +8,7 @@
88"""Add tests here if you want to ensure the behaviour of the power indicator menus are correct"""
99
1010from testtools.matchers import Equals, NotEquals
11+from autopilot.input import Touch
1112from autopilot.matchers import Eventually
1213
1314from unity8.indicators_client.tests import IndicatorsTestCase
@@ -82,6 +83,8 @@ class TestDisplayMenus(IndicatorsTestCase):
8283 def test_brightness_slider(self):
8384 """Test the auto-bright switch"""
8485
86+ if self.input_device_class is Touch:
87+ self.skipTest("Dragging is broken with Touch input (LP: #1203808).")
8588 fn_brightness_menu = lambda: self.app.select_single("SliderMenuItem", objectName="brightness");
8689 self.assertThat(fn_brightness_menu, Eventually(NotEquals(None)));
8790 brightness_menu = fn_brightness_menu();
tests/autopilot/unity8/shell/tests/test_lock_screen.py+2−2
@@ -47,7 +47,7 @@ class TestLockscreen(Unity8TestCase):
4747
4848 self.assertThat(lockscreen.shown, Eventually(Equals(False)))
4949
50− @skipUnless(model() == 'Desktop', "Passphrase applicable to desktop only.")
50+ @skipUnless(model() == 'Desktop', "Broken passphrase entry on UInput (LP: #1203788).")
5151 @with_lightdm_mock("single-passphrase")
5252 def test_can_unlock_passphrase_screen(self):
5353 """Must be able to unlock the passphrase entry screen."""
@@ -74,7 +74,7 @@ class TestLockscreen(Unity8TestCase):
7474 self.assertThat(pinentryField.text, Eventually(Equals("")))
7575 self.assertThat(lockscreen.shown, Eventually(Equals(True)))
7676
77− @skipUnless(model() == 'Desktop', "Passphrase applicable to desktop only.")
77+ @skipUnless(model() == 'Desktop', "Broken passphrase entry on UInput (LP: #1203788).")
7878 @with_lightdm_mock("single-passphrase")
7979 def test_passphrase_screen_wrong_password(self):
8080 """Entering the wrong password must not dismiss the lock screen."""