diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-09 15:10:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-09 15:10:27 +0300 |
commit | f4d6d3ec77286fa64810bd6a25c58671e0deedaf (patch) | |
tree | 7592fbcf6f7711c7729eabcc35935aade3f084eb /spec/features | |
parent | 82a546b14c7613fe355b3e68c425d5da8779641a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/search/user_searches_for_merge_requests_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/features/search/user_searches_for_merge_requests_spec.rb b/spec/features/search/user_searches_for_merge_requests_spec.rb index 0304259a1fd..32952a127d3 100644 --- a/spec/features/search/user_searches_for_merge_requests_spec.rb +++ b/spec/features/search/user_searches_for_merge_requests_spec.rb @@ -29,6 +29,11 @@ RSpec.describe 'User searches for merge requests', :js do page.within('.results') do expect(page).to have_link(merge_request1.title) expect(page).not_to have_link(merge_request2.title) + + # Each result should have MR refs like `gitlab-org/gitlab!1` + page.all('.search-result-row').each do |e| + expect(e.text).to match(/!\d+/) + end end end |