diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-09-25 11:14:19 -0500 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-09-25 11:14:19 -0500 |
commit | bea18efad3f1ea0462d57f53984df8e98cdb4636 (patch) | |
tree | 495ddddd168e8bc088a4b61e045f9ee63fa3416b /spec/features/search/user_searches_for_merge_requests_spec.rb | |
parent | 7a8514c3a1806f44d7602c7a6602c116b4264adb (diff) | |
download | gitlab-ce-bea18efad3f1ea0462d57f53984df8e98cdb4636.tar.gz |
Replaced trigger calls for click
Diffstat (limited to 'spec/features/search/user_searches_for_merge_requests_spec.rb')
-rw-r--r-- | spec/features/search/user_searches_for_merge_requests_spec.rb | 6 |
1 files changed, 3 insertions, 3 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 116256682f4..3b6739aecbd 100644 --- a/spec/features/search/user_searches_for_merge_requests_spec.rb +++ b/spec/features/search/user_searches_for_merge_requests_spec.rb @@ -17,7 +17,7 @@ describe 'User searches for merge requests', :js do it 'finds a merge request' do fill_in('dashboard_search', with: merge_request1.title) - find('.btn-search').trigger('click') + find('.btn-search').click page.within('.search-filter') do click_link('Merge requests') @@ -30,14 +30,14 @@ describe 'User searches for merge requests', :js do context 'when on a project page' do it 'finds a merge request' do - find('.js-search-project-dropdown').trigger('click') + find('.js-search-project-dropdown').click page.within('.project-filter') do click_link(project.name_with_namespace) end fill_in('dashboard_search', with: merge_request1.title) - find('.btn-search').trigger('click') + find('.btn-search').click page.within('.search-filter') do click_link('Merge requests') |