Add an automated test for #576

This is now testable easily since hints are renumbered
This commit is contained in:
Florian Bruhin 2016-06-07 13:56:27 +02:00
parent 222ab6f75e
commit 8ff53fdb7f
3 changed files with 12 additions and 27 deletions

View File

@ -13,6 +13,7 @@
Related issues:
<ul>
<li>#308 - Renumber hints when filtering them in number mode.</li>
<li>#576 - Keep hint filtering when rapid hinting in number mode</li>
</ul>
</p>

View File

@ -177,3 +177,14 @@ Feature: Using hints
And I press the key "s"
And I run :follow-hint 1
Then data/numbers/7.txt should be loaded
# https://github.com/The-Compiler/qutebrowser/issues/576
Scenario: Keeping hint filter in rapid mode
When I open data/hints/number.html
And I set hints -> mode to number
And I run :hint all tab-bg --rapid
And I press the key "t"
And I run :follow-hint 0
And I run :follow-hint 1
Then data/numbers/2.txt should be loaded
And data/numbers/3.txt should be loaded

View File

@ -1,27 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Issue 186</title>
</head>
<body>
<p>
This page contains several hints to test filtering with rapid hints, see <a href="https://github.com/The-Compiler/qutebrowser/issues/576">#576</a>.
</p>
<p>
This requires setting hints -> mode to number, and hints -> scatter to false.
</p>
<p>
When pressing ;r, t, and then following a hint, the "one" link should
not get a hint.
</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>
</ul>
</body>
</html>