summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2018-07-02 23:15:04 +0200
committerFlorian Bruhin <git@the-compiler.org>2018-07-02 23:15:04 +0200
commit6ca11ed95bd68b0b296bcdb7dbe0c750f8baf9d5 (patch)
tree34f8c886d298cb5ff2cbcc9bbd7789ccd40a9e7a
parent41303ecfcfad4d8c054cc113c0065ff016033d24 (diff)
downloadqutebrowser-6ca11ed95bd68b0b296bcdb7dbe0c750f8baf9d5.tar.gz
qutebrowser-6ca11ed95bd68b0b296bcdb7dbe0c750f8baf9d5.zip
Adjust SSL test for Qt 5.11
-rw-r--r--tests/end2end/features/test_prompts_bdd.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/end2end/features/test_prompts_bdd.py b/tests/end2end/features/test_prompts_bdd.py
index a21c943f1..0d74700b4 100644
--- a/tests/end2end/features/test_prompts_bdd.py
+++ b/tests/end2end/features/test_prompts_bdd.py
@@ -54,7 +54,8 @@ def ssl_error_page(request, quteproc):
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
+ assert ("ERR_INSECURE_RESPONSE" in content or # Qt <= 5.10
+ "ERR_CERT_AUTHORITY_INVALID" in content) # Qt 5.11
else:
if not request.config.webengine:
line = quteproc.wait_for(message='Error while loading *: SSL '