diff options
| author | Thomi Richards <thomi.richards@canonical.com> | 2012-07-06 09:11:31 +1200 |
|---|---|---|
| committer | Thomi Richards <thomi.richards@canonical.com> | 2012-07-06 09:11:31 +1200 |
| commit | 33b7a179b9ae8d2c4ef79d518debc176f5f9cd56 (patch) | |
| tree | 888a1b2b51b72baa648b3783e427eb78368e5d7b /tests | |
| parent | 3fe8c57cdbb0a37682b95a32285dd764b627cc0a (diff) | |
Fixed test_mouse_does_not_break_key_navigation test,
(bzr r2470.5.53)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/autopilot/unity/tests/test_panel.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/autopilot/unity/tests/test_panel.py b/tests/autopilot/unity/tests/test_panel.py index 333d32c8a..b6e279027 100644 --- a/tests/autopilot/unity/tests/test_panel.py +++ b/tests/autopilot/unity/tests/test_panel.py @@ -1000,22 +1000,22 @@ class PanelKeyNavigationTests(PanelTestsBase): self.assertThat(open_indicator.entry_id, Eventually(Equals(expected_indicator.entry_id))) def test_mouse_does_not_break_key_navigation(self): + """Must be able to use the mouse to open indicators after they've been + opened with the keyboard. + """ self.open_new_application_window("Calculator") available_indicators = self.panel.get_indicator_entries(include_hidden_menus=True) - sleep(1) self.keybinding("panel/open_first_menu") self.addCleanup(self.keyboard.press_and_release, "Escape") - sleep(1) available_indicators[2].mouse_move_to() self.addCleanup(self.panel.move_mouse_below_the_panel) - sleep(.25) - self.assertTrue(available_indicators[2].active) - sleep(1) + + self.assertThat(available_indicators[2].active, Eventually(Equals(True))) self.keybinding("panel/prev_indicator") - self.assertTrue(available_indicators[1].active) + self.assertThat(available_indicators[1].active, Eventually(Equals(True))) class PanelGrabAreaTests(PanelTestsBase): |
