summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpylbrecht <pylbrecht@mailbox.org>2024-01-19 12:56:36 +0100
committerpylbrecht <pylbrecht@mailbox.org>2024-02-07 20:22:21 +0100
commit60a275856e811e12488d1099e4e1a814f5b34b59 (patch)
treeda58e9636c25806b4bebc47cfa3703232e225961
parent2d9d8fd622040882d0ceb29d185852c8d8d6a727 (diff)
downloadqutebrowser-60a275856e811e12488d1099e4e1a814f5b34b59.tar.gz
qutebrowser-60a275856e811e12488d1099e4e1a814f5b34b59.zip
Add check_open_tree_tabs() prototype
-rw-r--r--tests/end2end/features/conftest.py12
1 files changed, 12 insertions, 0 deletions
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.