Re-enable SSL download test on QtWebEngine

This commit is contained in:
Florian Bruhin 2016-11-10 21:20:43 +01:00
parent 2d23ed52de
commit 6b14cda5d0
3 changed files with 10 additions and 11 deletions

View File

@ -352,6 +352,15 @@ def javascript_message_when(quteproc, message):
quteproc.wait_for_js(message)
@bdd.when("I clear SSL errors")
def clear_ssl_errors(request, quteproc):
if request.config.webengine:
quteproc.terminate()
quteproc.start()
else:
quteproc.send_cmd(':debug-clear-ssl-errors')
## Then

View File

@ -75,9 +75,8 @@ Feature: Downloading things from a website.
And I run :leave-mode
Then no crash should happen
@qtwebengine_todo: ssl-strict is not implemented yet
Scenario: Downloading with SSL errors (issue 1413)
When I run :debug-clear-ssl-errors
When I clear SSL errors
And I set network -> ssl-strict to ask
And I download an SSL page
And I wait for "Entering mode KeyMode.* (reason: question asked)" in the log

View File

@ -21,15 +21,6 @@ import pytest_bdd as bdd
bdd.scenarios('prompts.feature')
@bdd.when("I clear SSL errors")
def clear_ssl_errors(request, quteproc):
if request.config.webengine:
quteproc.terminate()
quteproc.start()
else:
quteproc.send_cmd(':debug-clear-ssl-errors')
@bdd.when("I load an SSL page")
def load_ssl_page(quteproc, ssl_server):
# We don't wait here as we can get an SSL question.