diff options
author | Charles Bushong <bushong1@gmail.com> | 2014-09-05 21:30:55 +0400 |
---|---|---|
committer | Charles Bushong <bushong1@gmail.com> | 2014-09-05 21:30:55 +0400 |
commit | 858dbd084253d2920d7007babe0471469eb459e7 (patch) | |
tree | 9ac2119b4b6b81af2c3a420628d8f20d06053f74 /features/snippet_search.feature | |
parent | b1411e90f81ea87ad45dee324b13881095e031ea (diff) |
Updating to persist a params snippets variable
Diffstat (limited to 'features/snippet_search.feature')
-rw-r--r-- | features/snippet_search.feature | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/features/snippet_search.feature b/features/snippet_search.feature new file mode 100644 index 00000000000..834bd3b2376 --- /dev/null +++ b/features/snippet_search.feature @@ -0,0 +1,20 @@ +@dashboard +Feature: Snippet Search + Background: + Given I sign in as a user + And I have public "Personal snippet one" snippet + And I have private "Personal snippet private" snippet + And I have a public many lined snippet + + Scenario: I should see my public and private snippets + When I search for "snippet" in snippet titles + Then I should see "Personal snippet one" in results + And I should see "Personal snippet private" in results + + Scenario: I should see three surrounding lines on either side of a matching snippet line + When I search for "line seven" in snippet contents + Then I should see "line four" in results + And I should see "line seven" in results + And I should see "line ten" in results + And I should not see "line three" in results + And I should not see "line eleven" in results |