From e105edebf52980ddffce5f0d3ab3c256e5b35a28 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 15 Sep 2018 20:46:11 +0200 Subject: [PATCH] Wait for follow_selected_done --- tests/unit/browser/test_caret.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/browser/test_caret.py b/tests/unit/browser/test_caret.py index bed4e3914..c93ff2afc 100644 --- a/tests/unit/browser/test_caret.py +++ b/tests/unit/browser/test_caret.py @@ -354,5 +354,6 @@ class TestFollowSelected: selection.toggle() caret.move_to_end_of_word() with qtbot.wait_signal(web_tab.load_finished): - caret.follow_selected() + with qtbot.wait_signal(caret.follow_selected_done): + caret.follow_selected() assert web_tab.url().path() == '/data/hello.txt'