Commit d7b48eb0 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Replaced trigger calls for click

parent 27a28d99
...@@ -38,7 +38,7 @@ feature 'issue move to another project' do ...@@ -38,7 +38,7 @@ feature 'issue move to another project' do
end end
scenario 'moving issue to another project', js: true do scenario 'moving issue to another project', js: true do
find('.js-move-issue').trigger('click') find('.js-move-issue').click
wait_for_requests wait_for_requests
all('.js-move-issue-dropdown-item')[0].click all('.js-move-issue-dropdown-item')[0].click
find('.js-move-issue-confirmation-button').click find('.js-move-issue-confirmation-button').click
...@@ -52,7 +52,7 @@ feature 'issue move to another project' do ...@@ -52,7 +52,7 @@ feature 'issue move to another project' do
scenario 'searching project dropdown', js: true do scenario 'searching project dropdown', js: true do
new_project_search.team << [user, :reporter] new_project_search.team << [user, :reporter]
find('.js-move-issue').trigger('click') find('.js-move-issue').click
wait_for_requests wait_for_requests
page.within '.js-sidebar-move-issue-block' do page.within '.js-sidebar-move-issue-block' do
...@@ -69,7 +69,7 @@ feature 'issue move to another project' do ...@@ -69,7 +69,7 @@ feature 'issue move to another project' do
background { another_project.team << [user, :guest] } background { another_project.team << [user, :guest] }
scenario 'browsing projects in projects select' do scenario 'browsing projects in projects select' do
find('.js-move-issue').trigger('click') find('.js-move-issue').click
wait_for_requests wait_for_requests
page.within '.js-sidebar-move-issue-block' do page.within '.js-sidebar-move-issue-block' do
......
...@@ -88,7 +88,7 @@ feature 'Diffs URL', js: true do ...@@ -88,7 +88,7 @@ feature 'Diffs URL', js: true do
visit diffs_project_merge_request_path(project, merge_request) visit diffs_project_merge_request_path(project, merge_request)
# Throws `Capybara::Poltergeist::InvalidSelector` if we try to use `#hash` syntax # Throws `Capybara::Poltergeist::InvalidSelector` if we try to use `#hash` syntax
find("[id=\"#{changelog_id}\"] .js-edit-blob").trigger('click') find("[id=\"#{changelog_id}\"] .js-edit-blob").click
expect(page).to have_selector('.js-fork-suggestion-button', count: 1) expect(page).to have_selector('.js-fork-suggestion-button', count: 1)
expect(page).to have_selector('.js-cancel-fork-suggestion-button', count: 1) expect(page).to have_selector('.js-cancel-fork-suggestion-button', count: 1)
......
...@@ -15,14 +15,14 @@ describe 'User searches for wiki pages', :js do ...@@ -15,14 +15,14 @@ describe 'User searches for wiki pages', :js do
include_examples 'top right search form' include_examples 'top right search form'
it 'finds a page' do it 'finds a page' do
find('.js-search-project-dropdown').trigger('click') find('.js-search-project-dropdown').click
page.within('.project-filter') do page.within('.project-filter') do
click_link(project.name_with_namespace) click_link(project.name_with_namespace)
end end
fill_in('dashboard_search', with: 'content') fill_in('dashboard_search', with: 'content')
find('.btn-search').trigger('click') find('.btn-search').click
page.within('.search-filter') do page.within('.search-filter') do
click_link('Wiki') click_link('Wiki')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment