diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-03-19 15:55:00 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-03-19 17:59:47 +0100 |
commit | 147eb058b97faf47b186d105b9adf91cb1306b58 (patch) | |
tree | e27ac476934e39c295665b46632bf7d56df7bfd4 /tests/end2end/features/test_prompts_bdd.py | |
parent | 046148fa8fac770b4e1816af4b9342f17bc361d4 (diff) | |
download | qutebrowser-147eb058b97faf47b186d105b9adf91cb1306b58.tar.gz qutebrowser-147eb058b97faf47b186d105b9adf91cb1306b58.zip |
Add content.tls.certificate_errors = ask-block-thirdparty
Fixes #3418
Diffstat (limited to 'tests/end2end/features/test_prompts_bdd.py')
-rw-r--r-- | tests/end2end/features/test_prompts_bdd.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/end2end/features/test_prompts_bdd.py b/tests/end2end/features/test_prompts_bdd.py index 3b42be4d0..46cc9c698 100644 --- a/tests/end2end/features/test_prompts_bdd.py +++ b/tests/end2end/features/test_prompts_bdd.py @@ -36,6 +36,17 @@ def wait_ssl_page_finished_loading(quteproc, ssl_server): load_status='warn') +@bdd.when("I load an SSL resource page") +def load_ssl_resource_page(quteproc, server, ssl_server): + # We don't wait here as we can get an SSL question. + quteproc.open_path(f'https-script/{ssl_server.port}', port=server.port, wait=False) + + +@bdd.when("I wait until the SSL resource page finished loading") +def wait_ssl_resource_page_finished_loading(quteproc, server, ssl_server): + quteproc.wait_for_load_finished(f'https-script/{ssl_server.port}', port=server.port) + + @bdd.when("I wait for a prompt") def wait_for_prompt(quteproc): quteproc.wait_for(message='Asking question *') |