summaryrefslogtreecommitdiff
path: root/tests/end2end/features/search.feature
diff options
context:
space:
mode:
Diffstat (limited to 'tests/end2end/features/search.feature')
-rw-r--r--tests/end2end/features/search.feature14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/end2end/features/search.feature b/tests/end2end/features/search.feature
index f2d793907..1397bad13 100644
--- a/tests/end2end/features/search.feature
+++ b/tests/end2end/features/search.feature
@@ -202,6 +202,20 @@ Feature: Searching on a page
And I wait for "prev_result found foo" in the log
Then "Foo" should be found
+ # This makes sure we don't mutate the original flags
+ Scenario: Jumping to previous match with --reverse twice
+ When I set search.ignore_case to always
+ And I run :search --reverse baz
+ # BAZ
+ And I wait for "search found baz with flags FindBackward" in the log
+ And I run :search-prev
+ # Baz
+ And I wait for "prev_result found baz" in the log
+ And I run :search-prev
+ # baz
+ And I wait for "prev_result found baz" in the log
+ Then "baz" should be found
+
Scenario: Jumping to previous match without search
# Make sure there was no search in the same window before
When I open data/search.html in a new window