Commit 04149dcc authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Changed trigger click calls to click()

parent df20c6fe
...@@ -94,6 +94,6 @@ feature 'Import/Export - project import integration test', :js do ...@@ -94,6 +94,6 @@ feature 'Import/Export - project import integration test', :js do
end end
def click_import_project_tab def click_import_project_tab
find('#import-project-tab').trigger('click') find('#import-project-tab').click
end end
end end
...@@ -15,7 +15,7 @@ feature 'New project' do ...@@ -15,7 +15,7 @@ feature 'New project' do
expect(page).to have_content('Project path') expect(page).to have_content('Project path')
expect(page).to have_content('Project name') expect(page).to have_content('Project name')
find('#import-project-tab').trigger('click') find('#import-project-tab').click
expect(page).to have_link('GitHub') expect(page).to have_link('GitHub')
expect(page).to have_link('Bitbucket') expect(page).to have_link('Bitbucket')
...@@ -137,7 +137,7 @@ feature 'New project' do ...@@ -137,7 +137,7 @@ feature 'New project' do
context 'Import project options', :js do context 'Import project options', :js do
before do before do
visit new_project_path visit new_project_path
find('#import-project-tab').trigger('click') find('#import-project-tab').click
end end
context 'from git repository url' do context 'from git repository url' do
......
...@@ -13,8 +13,10 @@ feature 'Project' do ...@@ -13,8 +13,10 @@ feature 'Project' do
end end
it "allows creation from templates", :js do it "allows creation from templates", :js do
find('#create-from-template-tab').trigger('click') find('#create-from-template-tab').click
find("##{template.name}").trigger('click') page.execute_script(
"document.querySelector('##{template.name}').click()"
)
fill_in("project_path", with: template.name) fill_in("project_path", with: template.name)
page.within '#content-body' do page.within '#content-body' do
......
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