Add basic tests for searching and caret mode

This commit is contained in:
Jay Kamat 2018-02-21 22:15:26 -05:00
parent 2ffb1604d3
commit c16c625feb
No known key found for this signature in database
GPG Key ID: 5D2E399600F4F7B5

View File

@ -320,3 +320,25 @@ Feature: Caret mode
And the following tabs should be open:
- data/caret.html
- data/hello.txt (active)
# Search + caret mode
Scenario: yanking a searched line
When I run :leave-mode
And I run :search fiv
And I wait for "search found fiv" in the log
And I run :enter-mode caret
And I run :move-to-end-of-line
And I run :yank selection
Then the clipboard should contain "five six"
Scenario: yanking a searched line with multiple matches
When I run :leave-mode
And I run :search w
And I wait for "search found w" in the log
And I run :search-next
And I wait for "next_result found w" in the log
And I run :enter-mode caret
And I run :move-to-end-of-line
And I run :yank selection
Then the clipboard should contain "wei drei"