summaryrefslogtreecommitdiff
path: root/tests/unit/browser/test_caret.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2018-09-14 20:18:33 +0200
committerFlorian Bruhin <me@the-compiler.org>2018-09-14 20:18:33 +0200
commitbc45aa33e0ac58e8ccd54508b36dc0b463c4c3c3 (patch)
tree57f02f0b18d42e86b8e9eae6cfe8a99c55fba7fd /tests/unit/browser/test_caret.py
parentafe16d3a7cbe437c59aba130ced5607dcc09474f (diff)
downloadqutebrowser-bc45aa33e0ac58e8ccd54508b36dc0b463c4c3c3.tar.gz
qutebrowser-bc45aa33e0ac58e8ccd54508b36dc0b463c4c3c3.zip
Make sure we wait until follow_selected is done
Diffstat (limited to 'tests/unit/browser/test_caret.py')
-rw-r--r--tests/unit/browser/test_caret.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/unit/browser/test_caret.py b/tests/unit/browser/test_caret.py
index 2ec81da9c..273fd6881 100644
--- a/tests/unit/browser/test_caret.py
+++ b/tests/unit/browser/test_caret.py
@@ -331,14 +331,16 @@ class TestSearch:
class TestFollowSelected:
- def test_follow_selected_without_a_selection(self, caret, selection):
- caret.follow_selected()
+ def test_follow_selected_without_a_selection(self, qtbot, caret, selection):
+ with qtbot.wait_signal(caret.follow_selected_done):
+ caret.follow_selected()
- def test_follow_selected_with_text(self, caret, selection):
+ def test_follow_selected_with_text(self, qtbot, caret, selection):
caret.move_to_next_word()
selection.toggle()
caret.move_to_end_of_word()
- caret.follow_selected()
+ with qtbot.wait_signal(caret.follow_selected_done):
+ caret.follow_selected()
@pytest.mark.parametrize('with_js', [True, False])
def test_follow_selected_with_link(self, caret, selection, config_stub,