summaryrefslogtreecommitdiff
path: root/spec/features/search/user_searches_for_wiki_pages_spec.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2019-08-30 09:49:15 +0000
committerLin Jen-Shin <godfat@godfat.org>2019-08-30 09:49:15 +0000
commit9bff69b6264382f7a9cbcbb351284c7e77810209 (patch)
tree5fa93f57ef35c07ee4cd9c15480404d15f0c47b3 /spec/features/search/user_searches_for_wiki_pages_spec.rb
parentb76bc2762a245c61089fae486e61c9fd83d45f95 (diff)
parent1bccd36f04f1e1c4efe9155ea9037910c42a3749 (diff)
downloadgitlab-ce-9bff69b6264382f7a9cbcbb351284c7e77810209.tar.gz
Merge branch '36383-improve-search-result-labels' into 'master'
Improve search result labels See merge request gitlab-org/gitlab-ce!32101
Diffstat (limited to 'spec/features/search/user_searches_for_wiki_pages_spec.rb')
-rw-r--r--spec/features/search/user_searches_for_wiki_pages_spec.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/spec/features/search/user_searches_for_wiki_pages_spec.rb b/spec/features/search/user_searches_for_wiki_pages_spec.rb
index 0a5abfbf46a..1ae37447bdc 100644
--- a/spec/features/search/user_searches_for_wiki_pages_spec.rb
+++ b/spec/features/search/user_searches_for_wiki_pages_spec.rb
@@ -26,13 +26,10 @@ describe 'User searches for wiki pages', :js do
fill_in('dashboard_search', with: search_term)
find('.btn-search').click
-
- page.within('.search-filter') do
- click_link('Wiki')
- end
+ select_search_scope('Wiki')
page.within('.results') do
- expect(find(:css, '.search-results')).to have_link(wiki_page.title, href: project_wiki_path(project, wiki_page.slug))
+ expect(page).to have_link(wiki_page.title, href: project_wiki_path(project, wiki_page.slug))
end
end
end