Commit 5072ecc6 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Replaced trigger click calls for click, also fixed ace_editor-input test

parent 45da02f9
...@@ -118,7 +118,7 @@ feature 'Multiple issue updating from issues#index', :js do ...@@ -118,7 +118,7 @@ feature 'Multiple issue updating from issues#index', :js do
end end
def click_update_issues_button def click_update_issues_button
find('.update-selected-issues').trigger('click') find('.update-selected-issues').click
wait_for_requests wait_for_requests
end end
end end
...@@ -127,7 +127,7 @@ feature 'Multiple merge requests updating from merge_requests#index' do ...@@ -127,7 +127,7 @@ feature 'Multiple merge requests updating from merge_requests#index' do
end end
def click_update_merge_requests_button def click_update_merge_requests_button
find('.update-selected-issues').trigger('click') find('.update-selected-issues').click
wait_for_requests wait_for_requests
end end
end end
...@@ -14,7 +14,7 @@ feature 'User creates snippet', :js do ...@@ -14,7 +14,7 @@ feature 'User creates snippet', :js do
fill_in 'personal_snippet_title', with: 'My Snippet Title' fill_in 'personal_snippet_title', with: 'My Snippet Title'
fill_in 'personal_snippet_description', with: 'My Snippet **Description**' fill_in 'personal_snippet_description', with: 'My Snippet **Description**'
page.within('.file-editor') do page.within('.file-editor') do
find('.ace_text-input').native.send_keys 'Hello World!' find('.ace_text-input', visible: false).send_keys 'Hello World!'
end end
end end
...@@ -94,7 +94,7 @@ feature 'User creates snippet', :js do ...@@ -94,7 +94,7 @@ feature 'User creates snippet', :js do
fill_in 'personal_snippet_title', with: 'My Snippet Title' fill_in 'personal_snippet_title', with: 'My Snippet Title'
page.within('.file-editor') do page.within('.file-editor') do
find(:xpath, "//input[@id='personal_snippet_file_name']").set 'snippet+file+name' find(:xpath, "//input[@id='personal_snippet_file_name']").set 'snippet+file+name'
find('.ace_text-input').native.send_keys 'Hello World!' find('.ace_text-input', visible: false).send_keys 'Hello World!'
end end
click_button 'Create snippet' click_button 'Create snippet'
......
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