From 3312c221c4691357a8564448f4d2c0f686a4944e Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 26 Jun 2018 10:26:17 +0200 Subject: [PATCH] Stabilize ssl_strict test --- tests/end2end/features/test_prompts_bdd.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/end2end/features/test_prompts_bdd.py b/tests/end2end/features/test_prompts_bdd.py index ef55ae662..a21c943f1 100644 --- a/tests/end2end/features/test_prompts_bdd.py +++ b/tests/end2end/features/test_prompts_bdd.py @@ -17,6 +17,8 @@ # You should have received a copy of the GNU General Public License # along with qutebrowser. If not, see . +import time + import pytest_bdd as bdd bdd.scenarios('prompts.feature') @@ -50,6 +52,7 @@ def no_prompt_shown(quteproc): def ssl_error_page(request, quteproc): if request.config.webengine and qtutils.version_check('5.9'): quteproc.wait_for(message="Certificate error: *") + time.sleep(0.5) # Wait for error page to appear content = quteproc.get_content().strip() assert "ERR_INSECURE_RESPONSE" in content else: