Fix failing specs
This commit is contained in:
parent
d84f1180d8
commit
830ccdfd3e
|
@ -1,6 +1,8 @@
|
|||
require 'rails_helper'
|
||||
|
||||
feature 'Multiple issue updating from issues#index', feature: true do
|
||||
include WaitForAjax
|
||||
|
||||
let!(:project) { create(:project) }
|
||||
let!(:issue) { create(:issue, project: project) }
|
||||
let!(:user) { create(:user)}
|
||||
|
@ -24,9 +26,7 @@ feature 'Multiple issue updating from issues#index', feature: true do
|
|||
|
||||
it 'should be set to open' do
|
||||
create_closed
|
||||
visit namespace_project_issues_path(project.namespace, project)
|
||||
|
||||
find('.issues-state-filters a', text: 'Closed').click
|
||||
visit namespace_project_issues_path(project.namespace, project, state: 'closed')
|
||||
|
||||
find('#check_all_issues').click
|
||||
find('.js-issue-status').click
|
||||
|
@ -61,8 +61,8 @@ feature 'Multiple issue updating from issues#index', feature: true do
|
|||
|
||||
click_link 'Unassigned'
|
||||
click_update_issues_button
|
||||
|
||||
within first('.issue .controls') do
|
||||
sleep 1 # needed
|
||||
page.within first('.issue .controls') do
|
||||
expect(page).to have_no_selector('.author_link')
|
||||
end
|
||||
end
|
||||
|
@ -95,7 +95,8 @@ feature 'Multiple issue updating from issues#index', feature: true do
|
|||
find('.dropdown-menu-milestone a', text: "No Milestone").click
|
||||
click_update_issues_button
|
||||
|
||||
expect(first('.issue')).not_to have_content milestone.title
|
||||
sleep 1 # needed
|
||||
expect(first('.issue')).to_not have_content milestone.title
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -113,5 +114,6 @@ feature 'Multiple issue updating from issues#index', feature: true do
|
|||
|
||||
def click_update_issues_button
|
||||
find('.update_selected_issues').click
|
||||
wait_for_ajax
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue