Expose tab if needed

This commit is contained in:
Florian Bruhin 2018-10-16 15:10:32 +02:00
parent fa5093e53e
commit 9727975914

View File

@ -25,7 +25,7 @@ import operator
import pytest import pytest
from PyQt5.QtCore import QUrl from PyQt5.QtCore import QUrl
from qutebrowser.utils import usertypes from qutebrowser.utils import usertypes, qtutils
import qutebrowser.browser.hints import qutebrowser.browser.hints
@ -40,6 +40,11 @@ def tabbed_browser(tabbed_browser_stubs, web_tab):
tb.widget.tabs = [web_tab] tb.widget.tabs = [web_tab]
tb.widget.current_index = 1 tb.widget.current_index = 1
tb.widget.cur_url = QUrl('https://www.example.com/') 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 return tb