From 50031c5aaec456d340a5b6f01cb38456d8814062 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 18 Aug 2016 22:53:42 +0200 Subject: [PATCH] bdd: xfail in check_open_tabs for QtWebEngine --- tests/end2end/features/conftest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/end2end/features/conftest.py b/tests/end2end/features/conftest.py index 0276e6244..be72ad653 100644 --- a/tests/end2end/features/conftest.py +++ b/tests/end2end/features/conftest.py @@ -497,13 +497,17 @@ def check_contents_json(quteproc, text): @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. This is a lightweight alternative for "The session should look like: ...". 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() active_suffix = ' (active)' tabs = tabs.splitlines()