diff options
author | Florian Bruhin <git@the-compiler.org> | 2016-08-18 17:21:50 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2016-08-18 17:21:50 +0200 |
commit | 745614e45d1cbb1754af9a8fc37c2d37aeca9d3d (patch) | |
tree | 3f9ebbca8a44e2be376554f0950119bc636c9721 /tests/end2end/test_insert_mode.py | |
parent | d7110069bb1f7e42e6b081fe7beec288e6e9da77 (diff) | |
download | qutebrowser-745614e45d1cbb1754af9a8fc37c2d37aeca9d3d.tar.gz qutebrowser-745614e45d1cbb1754af9a8fc37c2d37aeca9d3d.zip |
BDD: Wait until hints are ready after hinting
With QtWebEngine, hinting happens async, so we need to wait for
"hints: ..." in the log before we can actually follow a hint.
Diffstat (limited to 'tests/end2end/test_insert_mode.py')
-rw-r--r-- | tests/end2end/test_insert_mode.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/end2end/test_insert_mode.py b/tests/end2end/test_insert_mode.py index 552fffbb4..ad4cce33c 100644 --- a/tests/end2end/test_insert_mode.py +++ b/tests/end2end/test_insert_mode.py @@ -52,6 +52,7 @@ def test_insert_mode(file_name, elem_id, source, input_text, auto_insert, quteproc.send_cmd(':insert-text {clipboard}') quteproc.send_cmd(':hint all') + quteproc.wait_for(message='hints: *') quteproc.send_cmd(':follow-hint a') quteproc.wait_for(message='Clicked editable element!') quteproc.send_cmd(':enter-mode caret') @@ -76,6 +77,7 @@ def test_auto_leave_insert_mode(quteproc): quteproc.press_keys('abcd') quteproc.send_cmd(':hint all') + quteproc.wait_for(message='hints: *') # Select the disabled input box to leave insert mode quteproc.send_cmd(':follow-hint s') |