diff options
| -rw-r--r-- | manual-tests/Dash.txt | 20 | ||||
| -rw-r--r-- | tests/autopilot/unity/tests/test_dash.py | 20 |
2 files changed, 20 insertions, 20 deletions
diff --git a/manual-tests/Dash.txt b/manual-tests/Dash.txt index 2a3e9c0c2..6e3dec861 100644 --- a/manual-tests/Dash.txt +++ b/manual-tests/Dash.txt @@ -27,26 +27,6 @@ Expected Result: that lasts longer than that is not considered a tap. -Dash SearchBar middle-click -Note: Should be automated ---------------------------- -This test shows how the middle click over the dash search bar should work -(see lp:842462) - -Setup: - -Actions: -#. Select this text with you mouse. -#. Press Super or Alt+F2 to open the Dash -#. Move the mouse cursor over the dash search entry box. -#. Middle click. - -Expected Result: - The text previously selected is pasted on the search bar at mouse pointer - position, if the operation is repeated the text is inserted where - the mouse pointer is. - - Dash correct number of "see more" results with horizontal renderer --------------------------- This test ensures a correct number of "see more" results in the dash when using a horizontal renderer diff --git a/tests/autopilot/unity/tests/test_dash.py b/tests/autopilot/unity/tests/test_dash.py index 60311f10b..f7e421f6e 100644 --- a/tests/autopilot/unity/tests/test_dash.py +++ b/tests/autopilot/unity/tests/test_dash.py @@ -351,6 +351,26 @@ class DashClipboardTests(DashTestCase): self.keyboard.press_and_release("Ctrl+v") self.assertThat(self.dash.search_string, Eventually(Equals('CutPasteCutPaste'))) + + def test_middle_click_paste(self): + """Tests if Middle mouse button pastes into searchbar""" + + self.start_app_window("Calculator", locale='C') + + self.keyboard.type("ThirdButtonPaste") + self.keyboard.press_and_release("Ctrl+a") + self.keyboard.press_and_release("Ctrl+c") + + self.assertThat(get_clipboard_contents, Eventually(Equals('ThirdButtonPaste'))) + + self.dash.ensure_visible() + + self.mouse.move(self.dash.searchbar.x + self.dash.searchbar.width / 2, + self.dash.searchbar.y + self.dash.searchbar.height / 2) + + self.mouse.click(button=2) + + self.assertThat(self.dash.search_string, Eventually(Equals('ThirdButtonPaste'))) class DashKeyboardFocusTests(DashTestCase): |
