on xenial help sign in
Skip slider due to bug #1203808 and add change skip reason for passphrase entry - bug #1203788
ea6bddcMichał Sawicz
tests/autopilot/unity8/indicators_client/tests/test_battery.py+3
@@ -8,6 +8,7 @@
8"""Add tests here if you want to ensure the behaviour of the power indicator menus are correct"""
8"""Add tests here if you want to ensure the behaviour of the power indicator menus are correct"""
9
9
10from testtools.matchers import Equals, NotEquals
10from testtools.matchers import Equals, NotEquals
11+from autopilot.input import Touch
11from autopilot.matchers import Eventually
12from autopilot.matchers import Eventually
12
13
13from unity8.indicators_client.tests import IndicatorsTestCase
14from unity8.indicators_client.tests import IndicatorsTestCase
@@ -82,6 +83,8 @@ class TestDisplayMenus(IndicatorsTestCase):
82 def test_brightness_slider(self):
83 def test_brightness_slider(self):
83 """Test the auto-bright switch"""
84 """Test the auto-bright switch"""
84
85
86+ if self.input_device_class is Touch:
87+ self.skipTest("Dragging is broken with Touch input (LP: #1203808).")
85 fn_brightness_menu = lambda: self.app.select_single("SliderMenuItem", objectName="brightness");
88 fn_brightness_menu = lambda: self.app.select_single("SliderMenuItem", objectName="brightness");
86 self.assertThat(fn_brightness_menu, Eventually(NotEquals(None)));
89 self.assertThat(fn_brightness_menu, Eventually(NotEquals(None)));
87 brightness_menu = fn_brightness_menu();
90 brightness_menu = fn_brightness_menu();
tests/autopilot/unity8/shell/tests/test_lock_screen.py+2−2
@@ -47,7 +47,7 @@ class TestLockscreen(Unity8TestCase):
47
47
48 self.assertThat(lockscreen.shown, Eventually(Equals(False)))
48 self.assertThat(lockscreen.shown, Eventually(Equals(False)))
49
49
50− @skipUnless(model() == 'Desktop', "Passphrase applicable to desktop only.")
50+ @skipUnless(model() == 'Desktop', "Broken passphrase entry on UInput (LP: #1203788).")
51 @with_lightdm_mock("single-passphrase")
51 @with_lightdm_mock("single-passphrase")
52 def test_can_unlock_passphrase_screen(self):
52 def test_can_unlock_passphrase_screen(self):
53 """Must be able to unlock the passphrase entry screen."""
53 """Must be able to unlock the passphrase entry screen."""
@@ -74,7 +74,7 @@ class TestLockscreen(Unity8TestCase):
74 self.assertThat(pinentryField.text, Eventually(Equals("")))
74 self.assertThat(pinentryField.text, Eventually(Equals("")))
75 self.assertThat(lockscreen.shown, Eventually(Equals(True)))
75 self.assertThat(lockscreen.shown, Eventually(Equals(True)))
76
76
77− @skipUnless(model() == 'Desktop', "Passphrase applicable to desktop only.")
77+ @skipUnless(model() == 'Desktop', "Broken passphrase entry on UInput (LP: #1203788).")
78 @with_lightdm_mock("single-passphrase")
78 @with_lightdm_mock("single-passphrase")
79 def test_passphrase_screen_wrong_password(self):
79 def test_passphrase_screen_wrong_password(self):
80 """Entering the wrong password must not dismiss the lock screen."""
80 """Entering the wrong password must not dismiss the lock screen."""