Commit fd1cc2a4 authored by Alexandra Borovova's avatar Alexandra Borovova Committed by aborovova@mozilla.com
Browse files

Bug 1959372 - [wdspec] Add invalid test cases for "acceptInsecureCerts"...

Bug 1959372 - [wdspec] Add invalid test cases for "acceptInsecureCerts" argument in "browser.createUserContext" command. r=webdriver-reviewers,jdescottes

Differential Revision: https://phabricator.services.mozilla.com/D247750
parent 84f29baa
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
import pytest
import webdriver.bidi.error as error

pytestmark = pytest.mark.asyncio


@pytest.mark.parametrize("value", ["foo", 42, {}, []])
async def test_params_accept_insecure_certs_invalid_type(bidi_session, value):
    with pytest.raises(error.InvalidArgumentException):
        await bidi_session.browser.create_user_context(accept_insecure_certs=value)