Add test for custom hint group
This commit is contained in:
parent
7aa5db29b5
commit
332cbf811b
13
tests/end2end/data/hints/custom_group.html
Normal file
13
tests/end2end/data/hints/custom_group.html
Normal 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>
|
@ -190,6 +190,17 @@ Feature: Using hints
|
|||||||
And I run :hint INVALID_GROUP
|
And I run :hint INVALID_GROUP
|
||||||
Then the error "Undefined hinting group 'INVALID_GROUP'!" should be shown
|
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
|
# https://github.com/qutebrowser/qutebrowser/issues/1613
|
||||||
Scenario: Hinting inputs with padding
|
Scenario: Hinting inputs with padding
|
||||||
When I open data/hints/input.html
|
When I open data/hints/input.html
|
||||||
|
Loading…
Reference in New Issue
Block a user