bdd: xfail in check_open_tabs for QtWebEngine
This commit is contained in:
parent
15f142880e
commit
50031c5aae
@ -497,13 +497,17 @@ def check_contents_json(quteproc, text):
|
|||||||
|
|
||||||
|
|
||||||
@bdd.then(bdd.parsers.parse("the following tabs should be open:\n{tabs}"))
|
@bdd.then(bdd.parsers.parse("the following tabs should be open:\n{tabs}"))
|
||||||
def check_open_tabs(quteproc, tabs):
|
def check_open_tabs(quteproc, request, tabs):
|
||||||
"""Check the list of open tabs in the session.
|
"""Check the list of open tabs in the session.
|
||||||
|
|
||||||
This is a lightweight alternative for "The session should look like: ...".
|
This is a lightweight alternative for "The session should look like: ...".
|
||||||
|
|
||||||
It expects a list of URLs, with an optional "(active)" suffix.
|
It expects a list of URLs, with an optional "(active)" suffix.
|
||||||
"""
|
"""
|
||||||
|
if request.config.getoption('--qute-bdd-webengine'):
|
||||||
|
# pylint: disable=no-member
|
||||||
|
pytest.xfail(reason="QtWebEngine TODO: Sessions are not implemented")
|
||||||
|
# pylint: enable=no-member
|
||||||
session = quteproc.get_session()
|
session = quteproc.get_session()
|
||||||
active_suffix = ' (active)'
|
active_suffix = ' (active)'
|
||||||
tabs = tabs.splitlines()
|
tabs = tabs.splitlines()
|
||||||
|
Loading…
Reference in New Issue
Block a user