diff options
author | Tim Gadanidis <tim@gadanidis.ca> | 2021-11-04 16:10:53 -0400 |
---|---|---|
committer | Tim Gadanidis <tim@gadanidis.ca> | 2021-11-04 16:10:53 -0400 |
commit | 437141ddea36be99220a619d28c1c18e1d1c3c6c (patch) | |
tree | e6dd49e5d70ab98ff27db7da45d29945dc1c2b00 | |
parent | 7c5eb1e22c86701b4cdee502ff0301fafde1932a (diff) | |
download | qutebrowser-437141ddea36be99220a619d28c1c18e1d1c3c6c.tar.gz qutebrowser-437141ddea36be99220a619d28c1c18e1d1c3c6c.zip |
Test resetting direction on duplicate searches
-rw-r--r-- | tests/end2end/features/search.feature | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/end2end/features/search.feature b/tests/end2end/features/search.feature index c3f564fac..61deb3dcc 100644 --- a/tests/end2end/features/search.feature +++ b/tests/end2end/features/search.feature @@ -73,6 +73,24 @@ Feature: Searching on a page And I run :search foo Then "Ignoring duplicate search request for foo, but resetting flags" should be logged + Scenario: Reset search direction on duplicate search, forward-to-back + When I run :search baz + And I wait for "search found baz" in the log + And I run :search -r baz + And I wait for "Ignoring duplicate search request for baz, but resetting flags" in the log + And I run :search-next + And I wait for "next_result found baz with flags FindBackward" in the log + Then "BAZ" should be found + + Scenario: Reset search direction on duplicate search, back-to-forward + When I run :search -r baz + And I wait for "search found baz with flags FindBackward" in the log + And I run :search baz + And I wait for "Ignoring duplicate search request for baz, but resetting flags" in the log + And I run :search-next + And I wait for "next_result found baz" in the log + Then "Baz" should be found + ## search.ignore_case Scenario: Searching text with search.ignore_case = always |