Commit fcf10689 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Do not use javascript in specs for issue move

Feature specs that were using javascript took a long time to finish
(about 10x longer) and where hitting Poltergeist timeouts.

This modification skips using javascript with select2 selecbox, thus it
is faster, but this also does not check some JavaScript related
features.
parent b9036ba6
...@@ -36,9 +36,8 @@ feature 'issue move to another project' do ...@@ -36,9 +36,8 @@ feature 'issue move to another project' do
edit_issue(issue) edit_issue(issue)
end end
scenario 'moving issue to another project', js: true do scenario 'moving issue to another project' do
find('#s2id_move_to_project_id').click select(new_project.name_with_namespace, from: 'move_to_project_id')
find('.select2-drop li', text: new_project.name_with_namespace).click
click_button('Save changes') click_button('Save changes')
expect(current_url).to include project_path(new_project) expect(current_url).to include project_path(new_project)
......
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