summaryrefslogtreecommitdiff
path: root/tests/end2end/test_hints_html.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-12-01 17:21:31 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-12-01 17:21:31 +0100
commit470fede771eb978903eade6fd34632aa6adab0e2 (patch)
treec8dc118e9da5ee29c5553275adf86b8d5ddcc8e8 /tests/end2end/test_hints_html.py
parentee79ea6532f3c9d40569fb1c9329f4e5cec1fc4f (diff)
downloadqutebrowser-470fede771eb978903eade6fd34632aa6adab0e2.tar.gz
qutebrowser-470fede771eb978903eade6fd34632aa6adab0e2.zip
tests: Move invisible.html to hints/html
Diffstat (limited to 'tests/end2end/test_hints_html.py')
-rw-r--r--tests/end2end/test_hints_html.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/end2end/test_hints_html.py b/tests/end2end/test_hints_html.py
index ebb2a7e33..f1cda97fe 100644
--- a/tests/end2end/test_hints_html.py
+++ b/tests/end2end/test_hints_html.py
@@ -40,7 +40,7 @@ def collect_tests():
@dataclasses.dataclass
class ParsedFile:
- target: str
+ target: Optional[str]
qtwebengine_todo: Optional[str]
@@ -107,11 +107,18 @@ def test_hints(test_name, zoom_text_only, zoom_level, find_implementation,
quteproc.set_setting('zoom.text_only', str(zoom_text_only))
quteproc.set_setting('hints.find_implementation', find_implementation)
quteproc.send_cmd(':zoom {}'.format(zoom_level))
+
# follow hint
quteproc.send_cmd(':hint all normal')
- quteproc.wait_for(message='hints: a', category='hints')
- quteproc.send_cmd(':hint-follow a')
- quteproc.wait_for_load_finished('data/' + parsed.target)
+
+ if parsed.target is None:
+ msg = quteproc.wait_for(message='No elements found.', category='message')
+ msg.expected = True
+ else:
+ quteproc.wait_for(message='hints: a', category='hints')
+ quteproc.send_cmd(':hint-follow a')
+ quteproc.wait_for_load_finished('data/' + parsed.target)
+
# reset
quteproc.send_cmd(':zoom 100')
if not request.config.webengine: