diff --git a/tests/end2end/features/test_open_bdd.py b/tests/end2end/features/test_open_bdd.py index 4a609decb..422c2d3fc 100644 --- a/tests/end2end/features/test_open_bdd.py +++ b/tests/end2end/features/test_open_bdd.py @@ -17,5 +17,18 @@ # You should have received a copy of the GNU General Public License # along with qutebrowser. If not, see . +import logging + import pytest_bdd as bdd bdd.scenarios('open.feature') + + +def test_open_s(quteproc, ssl_server): + """Test :open with -s.""" + quteproc.set_setting('network', 'ssl-strict' , 'false') + quteproc.send_cmd(':open -s http://localhost:{}/'.format(ssl_server.port)) + quteproc.mark_expected(category='message', + loglevel=logging.ERROR, + message="Certificate error: *") + quteproc.wait_for_load_finished('/', port=ssl_server.port, https=True, + load_status='warn')