Add test for #308
This commit is contained in:
parent
7f3991a8ca
commit
efddd64d56
32
tests/end2end/data/hints/number.html
Normal file
32
tests/end2end/data/hints/number.html
Normal file
@ -0,0 +1,32 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Numbered hints</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
This page contains various links to test numbered hints. This requires setting hints -> mode to number, and hints -> scatter to false.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Related issues:
|
||||
<ul>
|
||||
<li>#308 - Renumber hints when filtering them in number mode.</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><a href="/data/numbers/1.txt">one</a></li>
|
||||
<li><a href="/data/numbers/2.txt">two</a></li>
|
||||
<li><a href="/data/numbers/3.txt">three</a></li>
|
||||
<li><a href="/data/numbers/4.txt">four</a></li>
|
||||
<li><a href="/data/numbers/5.txt">five</a></li>
|
||||
<li><a href="/data/numbers/6.txt">six</a></li>
|
||||
<li><a href="/data/numbers/7.txt">seven</a></li>
|
||||
<li><a href="/data/numbers/8.txt">eight</a></li>
|
||||
<li><a href="/data/numbers/9.txt">nine</a></li>
|
||||
<li><a href="/data/numbers/10.txt">ten</a></li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
@ -166,3 +166,14 @@ Feature: Using hints
|
||||
And I wait until data/hello.txt is loaded
|
||||
And I press the key ","
|
||||
Then the message "Keypress worked!" should be shown
|
||||
|
||||
### Number hint mode
|
||||
|
||||
# https://github.com/The-Compiler/qutebrowser/issues/308
|
||||
Scenario: Renumbering hints when filtering
|
||||
When I open data/hints/number.html
|
||||
And I set hints -> mode to number
|
||||
And I run :hint all
|
||||
And I press the key "s"
|
||||
And I run :follow-hint 1
|
||||
Then data/numbers/7.txt should be loaded
|
||||
|
Loading…
Reference in New Issue
Block a user