Commit 299213dd authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Replaced trigger calls for click, fixed click_on call

parent bea18efa
...@@ -22,7 +22,7 @@ describe 'Edit Project Settings' do ...@@ -22,7 +22,7 @@ describe 'Edit Project Settings' do
# disable by clicking toggle # disable by clicking toggle
toggle_feature_off("project[project_feature_attributes][#{tool_name}_access_level]") toggle_feature_off("project[project_feature_attributes][#{tool_name}_access_level]")
page.within('.sharing-permissions') do page.within('.sharing-permissions') do
click_button 'Save changes' find('input[value="Save changes"]').click
end end
wait_for_requests wait_for_requests
expect(page).not_to have_selector(".shortcuts-#{shortcut_name}") expect(page).not_to have_selector(".shortcuts-#{shortcut_name}")
...@@ -30,7 +30,7 @@ describe 'Edit Project Settings' do ...@@ -30,7 +30,7 @@ describe 'Edit Project Settings' do
# re-enable by clicking toggle again # re-enable by clicking toggle again
toggle_feature_on("project[project_feature_attributes][#{tool_name}_access_level]") toggle_feature_on("project[project_feature_attributes][#{tool_name}_access_level]")
page.within('.sharing-permissions') do page.within('.sharing-permissions') do
click_button 'Save changes' find('input[value="Save changes"]').click
end end
wait_for_requests wait_for_requests
expect(page).to have_selector(".shortcuts-#{shortcut_name}") expect(page).to have_selector(".shortcuts-#{shortcut_name}")
......
...@@ -16,7 +16,7 @@ describe 'User uses search filters', :js do ...@@ -16,7 +16,7 @@ describe 'User uses search filters', :js do
context' when filtering by group' do context' when filtering by group' do
it 'shows group projects' do it 'shows group projects' do
find('.js-search-group-dropdown').trigger('click') find('.js-search-group-dropdown').click
wait_for_requests wait_for_requests
...@@ -27,7 +27,7 @@ describe 'User uses search filters', :js do ...@@ -27,7 +27,7 @@ describe 'User uses search filters', :js do
expect(find('.js-search-group-dropdown')).to have_content(group.name) expect(find('.js-search-group-dropdown')).to have_content(group.name)
page.within('.project-filter') do page.within('.project-filter') do
find('.js-search-project-dropdown').trigger('click') find('.js-search-project-dropdown').click
wait_for_requests wait_for_requests
...@@ -39,7 +39,7 @@ describe 'User uses search filters', :js do ...@@ -39,7 +39,7 @@ describe 'User uses search filters', :js do
context' when filtering by project' do context' when filtering by project' do
it 'shows a project' do it 'shows a project' do
page.within('.project-filter') do page.within('.project-filter') do
find('.js-search-project-dropdown').trigger('click') find('.js-search-project-dropdown').click
wait_for_requests wait_for_requests
......
...@@ -88,7 +88,7 @@ describe 'Comments on personal snippets', :js do ...@@ -88,7 +88,7 @@ describe 'Comments on personal snippets', :js do
context 'when editing a note' do context 'when editing a note' do
it 'changes the text' do it 'changes the text' do
find('.js-note-edit').trigger('click') find('.js-note-edit').click
page.within('.current-note-edit-form') do page.within('.current-note-edit-form') do
fill_in 'note[note]', with: 'new content' fill_in 'note[note]', with: 'new content'
......
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