Commit 15108cba authored by Alfredo Sumaran's avatar Alfredo Sumaran

Fix spec

parent 812ae973
...@@ -42,7 +42,7 @@ feature 'Multiple issue updating from issues#index', feature: true do ...@@ -42,7 +42,7 @@ feature 'Multiple issue updating from issues#index', feature: true do
visit namespace_project_issues_path(project.namespace, project) visit namespace_project_issues_path(project.namespace, project)
find('#check_all_issues').click find('#check_all_issues').click
find('.js-update-assignee').click click_update_assignee_button
find('.dropdown-menu-user-link', text: user.username).click find('.dropdown-menu-user-link', text: user.username).click
click_update_issues_button click_update_issues_button
...@@ -57,14 +57,11 @@ feature 'Multiple issue updating from issues#index', feature: true do ...@@ -57,14 +57,11 @@ feature 'Multiple issue updating from issues#index', feature: true do
visit namespace_project_issues_path(project.namespace, project) visit namespace_project_issues_path(project.namespace, project)
find('#check_all_issues').click find('#check_all_issues').click
find('.js-update-assignee').click click_update_assignee_button
click_link 'Unassigned' click_link 'Unassigned'
click_update_issues_button click_update_issues_button
sleep 1 # needed expect(find('.issue:first-child .controls')).not_to have_css('.author_link')
page.within first('.issue .controls') do
expect(page).to have_no_selector('.author_link')
end
end end
end end
...@@ -95,8 +92,7 @@ feature 'Multiple issue updating from issues#index', feature: true do ...@@ -95,8 +92,7 @@ feature 'Multiple issue updating from issues#index', feature: true do
find('.dropdown-menu-milestone a', text: "No Milestone").click find('.dropdown-menu-milestone a', text: "No Milestone").click
click_update_issues_button click_update_issues_button
sleep 1 # needed expect(find('.issue:first-child')).to_not have_content milestone.title
expect(first('.issue')).to_not have_content milestone.title
end end
end end
...@@ -112,6 +108,11 @@ feature 'Multiple issue updating from issues#index', feature: true do ...@@ -112,6 +108,11 @@ feature 'Multiple issue updating from issues#index', feature: true do
create(:issue, project: project, milestone: milestone) create(:issue, project: project, milestone: milestone)
end end
def click_update_assignee_button
find('.js-update-assignee').click
wait_for_ajax
end
def click_update_issues_button def click_update_issues_button
find('.update_selected_issues').click find('.update_selected_issues').click
wait_for_ajax wait_for_ajax
......
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