Add test for custom hint group

This commit is contained in:
Olmo Kramer 2018-05-04 19:29:02 +02:00
parent 7aa5db29b5
commit 332cbf811b
No known key found for this signature in database
GPG Key ID: BE09591F4AB66337
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Custom hint groups</title>
</head>
<body>
<div class="clickable" onclick="console.log('beep!')">beep!</div>
<div class="clickable" onclick="console.log('bop!')">bop!</div>
<div class="clickable" onclick="console.log('boop!')">boop!</div>
</body>
</html>

View File

@ -190,6 +190,17 @@ Feature: Using hints
And I run :hint INVALID_GROUP
Then the error "Undefined hinting group 'INVALID_GROUP'!" should be shown
Scenario: Custom hint group
When I open data/hints/custom_group.html
And I set hints.selectors to {"custom": [".clickable"]}
And I hint with args "--rapid custom"
And I run :follow-hint a
And I run :follow-hint s
And I run :follow-hint d
Then the javascript message "beep!" should be logged
And the javascript message "bop!" should be logged
And the javascript message "boop!" should be logged
# https://github.com/qutebrowser/qutebrowser/issues/1613
Scenario: Hinting inputs with padding
When I open data/hints/input.html