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