summaryrefslogtreecommitdiff
path: root/tests/end2end/test_insert_mode.py
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2017-02-05 18:44:05 +0100
committerFlorian Bruhin <git@the-compiler.org>2017-02-05 18:44:39 +0100
commit219355103524036ec0d6802db65ad962d7cf4a0e (patch)
treefbd01c36446f69807fae2025d3a888e7d9456ea8 /tests/end2end/test_insert_mode.py
parentf3b39c55a0b9cb19756213a61a0d00c834dc8e1e (diff)
downloadqutebrowser-219355103524036ec0d6802db65ad962d7cf4a0e.tar.gz
qutebrowser-219355103524036ec0d6802db65ad962d7cf4a0e.zip
Simplify test_insert_mode
We already check whether insert mode was entered by listening for "contents: *", and the copying part is unstable with QtWebEngine.
Diffstat (limited to 'tests/end2end/test_insert_mode.py')
-rw-r--r--tests/end2end/test_insert_mode.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/end2end/test_insert_mode.py b/tests/end2end/test_insert_mode.py
index d28ac20d2..3d7b9999d 100644
--- a/tests/end2end/test_insert_mode.py
+++ b/tests/end2end/test_insert_mode.py
@@ -63,24 +63,7 @@ def test_insert_mode(file_name, elem_id, source, input_text, auto_insert, zoom,
raise ValueError("Invalid source {!r}".format(source))
quteproc.wait_for_js('contents: {}'.format(input_text))
-
quteproc.send_cmd(':leave-mode')
- quteproc.send_cmd(':click-element --force-event id {}'.format(elem_id))
- quteproc.wait_for(message='Entering mode KeyMode.insert (reason: *)')
-
- if not request.config.webengine:
- quteproc.send_cmd(':enter-mode caret')
- quteproc.send_cmd(':toggle-selection')
- quteproc.send_cmd(':move-to-prev-word')
-
- quteproc.send_cmd(':yank selection')
-
- expected_message = '{} chars yanked to clipboard'.format(len(input_text))
- quteproc.mark_expected(category='message',
- loglevel=logging.INFO,
- message=expected_message)
- quteproc.wait_for(
- message='Setting fake clipboard: {}'.format(json.dumps(input_text)))
def test_auto_leave_insert_mode(quteproc):