on xenial help sign in
further improve test
commit80f5359b73bb0aabec90f46f3b1b5905f7d336a7 authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 4 Sep 2013, 17:27 (13 years ago) parent4b8da9d
1 file changed+4−3
tests/autopilot/unity8/shell/tests/test_hud.py+4−3
tests/autopilot/unity8/shell/tests/test_hud.py+4−3
@@ -33,9 +33,9 @@ class TestHud(UnityTestCase):
3333 scenarios = _get_device_emulation_scenarios()
3434
3535 def test_show_hud_button_appears(self):
36− """Swiping up while an app is active must show the 'show hud' button
37− and it must disappear when releasing the mouse again somewhere
38− on the screen.
36+ """Swiping up while an app is active must show the 'show hud' button.
37+ The button must disappear not opening the HUD when releasing the
38+ mouse again somewhere on the screen except on the button itself.
3939
4040 """
4141 self.launch_unity()
@@ -56,6 +56,7 @@ class TestHud(UnityTestCase):
5656 self.assertThat(hud_show_button.opacity, Eventually(Equals(1.0)))
5757 self.touch.release();
5858 self.assertThat(hud_show_button.opacity, Eventually(Equals(0.0)))
59+ self.assertThat(hud.shown, Equals(False))
5960
6061 def test_show_hud_appears(self):
6162 """Releasing the touch on the 'show hud' button must display the hud.