From 2d97ffa3235658def264e966c343e37a149a23ca Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 18 Aug 2016 18:20:25 +0200 Subject: [PATCH] bdd: xfail in compare_session with WebEngine --- tests/end2end/features/conftest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/end2end/features/conftest.py b/tests/end2end/features/conftest.py index 97f134b64..844738499 100644 --- a/tests/end2end/features/conftest.py +++ b/tests/end2end/features/conftest.py @@ -423,12 +423,14 @@ def javascript_message_not_logged(quteproc, message): @bdd.then(bdd.parsers.parse("The session should look like:\n{expected}")) -def compare_session(quteproc, expected): +def compare_session(request, quteproc, expected): """Compare the current sessions against the given template. partial_compare is used, which means only the keys/values listed will be compared. """ + if request.config.getoption('--qute-bdd-webengine'): + pytest.xfail(reason="QtWebEngine TODO: Sessions are not implemented") quteproc.compare_session(expected)