diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-13 18:09:39 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-13 18:09:39 +0000 |
commit | 00fa950a34b1c94617110b150b8b2517d5241249 (patch) | |
tree | 8f2d8683879079da8f520f7867ebd49b8beaadef /spec/features/snippets | |
parent | c36152ff8c41fad2f413f253eb7ac5c927e47c56 (diff) | |
download | gitlab-ce-00fa950a34b1c94617110b150b8b2517d5241249.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/snippets')
-rw-r--r-- | spec/features/snippets/search_snippets_spec.rb | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/spec/features/snippets/search_snippets_spec.rb b/spec/features/snippets/search_snippets_spec.rb index dce790e5708..691716d3576 100644 --- a/spec/features/snippets/search_snippets_spec.rb +++ b/spec/features/snippets/search_snippets_spec.rb @@ -16,45 +16,4 @@ describe 'Search Snippets' do expect(page).to have_link(public_snippet.title) expect(page).to have_link(private_snippet.title) end - - it 'User searches for snippet contents' do - create(:personal_snippet, - :public, - title: 'Many lined snippet', - content: <<-CONTENT.strip_heredoc - |line one - |line two - |line three - |line four - |line five - |line six - |line seven - |line eight - |line nine - |line ten - |line eleven - |line twelve - |line thirteen - |line fourteen - CONTENT - ) - - sign_in create(:user) - visit dashboard_snippets_path - submit_search('line seven') - - expect(page).to have_content('line seven') - - # 3 lines before the matched line should be visible - expect(page).to have_content('line six') - expect(page).to have_content('line five') - expect(page).to have_content('line four') - expect(page).not_to have_content('line three') - - # 3 lines after the matched line should be visible - expect(page).to have_content('line eight') - expect(page).to have_content('line nine') - expect(page).to have_content('line ten') - expect(page).not_to have_content('line eleven') - end end |