diff options
| author | Stephen M. Webb <stephen.webb@canonical.com> | 2015-04-10 21:58:26 +0000 |
|---|---|---|
| committer | CI Train Bot <ci-train-bot@canonical.com> | 2015-04-10 21:58:26 +0000 |
| commit | a7c896741674399d987fc1fd7c4aebe7075d4fb9 (patch) | |
| tree | 4d0b8cd6b63df01a62fbe000c7c2d668d813c227 /tests | |
| parent | cb47cf520079b621c8242f3e266580faf6990552 (diff) | |
| parent | 26c43764edc2c2aaaf1a76d20e62bff9b9a04b1f (diff) | |
fixed the Panel title string expected by Launcher keynav AP tests Fixes: #1435830
Approved by: Christopher Townsend, PS Jenkins bot (bzr r3946)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/autopilot/unity/tests/launcher/test_keynav.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/autopilot/unity/tests/launcher/test_keynav.py b/tests/autopilot/unity/tests/launcher/test_keynav.py index fabc3f849..dda2b88ec 100644 --- a/tests/autopilot/unity/tests/launcher/test_keynav.py +++ b/tests/autopilot/unity/tests/launcher/test_keynav.py @@ -241,7 +241,12 @@ class LauncherKeyNavTests(LauncherTestCase): self.assertThat(self.unity.launcher.key_nav_is_active, Eventually(Equals(False))) def test_launcher_keynav_changes_panel(self): - """The panel title must change when in key nav mode.""" + """The panel title must change when in key nav mode + and LIM is not enabled. + """ - self.start_keynav_with_cleanup_cancel() - self.assertThat(self.unity.panels.get_active_panel().title, Eventually(Equals("Search your computer and online sources"))) + self.start_keynav_with_cleanup_cancel() + panel = self.unity.panels.get_active_panel() + expected_panel_title = ("" if panel.menus.integrated_menus + else "Search your computer and online sources") + self.assertThat(panel.title, Eventually(Equals(expected_panel_title))) |
