summaryrefslogtreecommitdiff
path: root/tests/end2end/features/test_misc_bdd.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/end2end/features/test_misc_bdd.py')
-rw-r--r--tests/end2end/features/test_misc_bdd.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/end2end/features/test_misc_bdd.py b/tests/end2end/features/test_misc_bdd.py
index 44920d19f..a4bae5c2d 100644
--- a/tests/end2end/features/test_misc_bdd.py
+++ b/tests/end2end/features/test_misc_bdd.py
@@ -21,6 +21,12 @@ import pytest_bdd as bdd
bdd.scenarios('misc.feature')
+@bdd.when("I load a third-party iframe")
+def load_iframe(quteproc, server, ssl_server):
+ quteproc.set_setting('content.tls.certificate_errors', 'load-insecurely')
+ quteproc.open_path(f'https-iframe/{ssl_server.port}', port=server.port)
+
+
@bdd.then(bdd.parsers.parse('the PDF {filename} should exist in the tmpdir'))
def pdf_exists(quteproc, tmpdir, filename):
path = tmpdir / filename