bdd: Add search tests for known bugs/regressions.

This adds a test for #874, #507 and #940.
This commit is contained in:
Florian Bruhin 2016-01-07 19:15:49 +01:00
parent 37022b8c45
commit df6d9d741f
2 changed files with 23 additions and 0 deletions

View File

@ -14,6 +14,8 @@
baz<br/> baz<br/>
Baz<br/> Baz<br/>
BAZ<br/> BAZ<br/>
space travel<br/>
/slash<br/>
</p> </p>
</body> </body>
</html> </html>

View File

@ -27,6 +27,19 @@ Feature: Searching on a page
When I run :search doesnotmatch When I run :search doesnotmatch
Then the warning "Text 'doesnotmatch' not found on page!" should be shown Then the warning "Text 'doesnotmatch' not found on page!" should be shown
@skip
Scenario: Searching with / and spaces at the end (issue 874)
When I run :set-cmd-text -s /space
And I run :command-accept
And I run :yank-selected
Then the clipboard should contain "space "
Scenario: Searching with / and slash in search term (issue 507)
When I run :set-cmd-text -s //slash
And I run :command-accept
And I run :yank-selected
Then the clipboard should contain "/slash"
# xfail takes a long time to timeout, and this doesn't work because this is # xfail takes a long time to timeout, and this doesn't work because this is
# QtWebKit behaviour. # QtWebKit behaviour.
@skip @skip
@ -89,6 +102,14 @@ Feature: Searching on a page
And I run :search-next And I run :search-next
Then no crash should happen Then no crash should happen
Scenario: Repeating search in a second tab (issue #940)
When I open data/search.html in a new tab
And I run :search foo
And I run :tab-prev
And I run :search-next
And I run :yank-selected
Then the clipboard should contain "foo"
## :search-prev ## :search-prev
Scenario: Jumping to previous match Scenario: Jumping to previous match