From 9727975914a338f3f57825e304955c33237bc7e8 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 16 Oct 2018 15:10:32 +0200 Subject: [PATCH] Expose tab if needed --- tests/unit/browser/test_hints.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/unit/browser/test_hints.py b/tests/unit/browser/test_hints.py index 69612df64..9a8a024c9 100644 --- a/tests/unit/browser/test_hints.py +++ b/tests/unit/browser/test_hints.py @@ -25,7 +25,7 @@ import operator import pytest from PyQt5.QtCore import QUrl -from qutebrowser.utils import usertypes +from qutebrowser.utils import usertypes, qtutils import qutebrowser.browser.hints @@ -40,6 +40,11 @@ def tabbed_browser(tabbed_browser_stubs, web_tab): tb.widget.tabs = [web_tab] tb.widget.current_index = 1 tb.widget.cur_url = QUrl('https://www.example.com/') + + if not qtutils.version_check('5.11', compiled=False): + # No elements found if we don't do this. + web_tab.container.expose() + return tb