From 60a275856e811e12488d1099e4e1a814f5b34b59 Mon Sep 17 00:00:00 2001 From: pylbrecht Date: Fri, 19 Jan 2024 12:56:36 +0100 Subject: Add check_open_tree_tabs() prototype --- tests/end2end/features/conftest.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/end2end/features/conftest.py b/tests/end2end/features/conftest.py index 70a5fc205..32aefca5e 100644 --- a/tests/end2end/features/conftest.py +++ b/tests/end2end/features/conftest.py @@ -620,6 +620,18 @@ def check_contents_json(quteproc, text): assert actual == expected +# TODO(pylbrecht): merge this with check_open_tabs() once mature enough +@bdd.then(bdd.parsers.parse("the following tree tabs should be open:\n{tabs}")) +def check_open_tree_tabs(quteproc, request, tabs): + """Check the tree of open tabs in the session. + + This is a lightweight alternative for "The session should look like: ...". + + It expects a tree of URLs, with an optional "(active)" suffix. + """ + raise NotImplementedError + + @bdd.then(bdd.parsers.parse("the following tabs should be open:\n{tabs}")) def check_open_tabs(quteproc, request, tabs): """Check the list of open tabs in the session. -- cgit v1.2.3-54-g00ecf