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'