show webview when caret testing

fixes #1988
This commit is contained in:
Daniel Karbach 2016-09-29 09:26:58 +02:00
parent 5b27e06ce2
commit 6728bb6430

View File

@ -67,7 +67,11 @@ class CaretTester:
@pytest.fixture
def caret_tester(js_tester):
"""Helper fixture to test caret browsing positions."""
return CaretTester(js_tester)
caret_tester = CaretTester(js_tester)
# Showing webview here is necessary for test_scrolled_down_img to
# succeed in some cases, see #1988
caret_tester.js.webview.show()
return caret_tester
@pytest.mark.integration