Commit f1a1058c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'dz-fix-milestones-spec' into 'master'

Fix RoutingError at ./spec/features/milestones/milestones_spec.rb

See merge request !8361
parents 27db8f72 f7d6fbf6
require 'rails_helper' require 'rails_helper'
describe 'Milestone draggable', feature: true, js: true do describe 'Milestone draggable', feature: true, js: true do
include WaitForAjax
let(:milestone) { create(:milestone, project: project, title: 8.14) } let(:milestone) { create(:milestone, project: project, title: 8.14) }
let(:project) { create(:empty_project, :public) } let(:project) { create(:empty_project, :public) }
let(:user) { create(:user) } let(:user) { create(:user) }
...@@ -74,6 +76,8 @@ describe 'Milestone draggable', feature: true, js: true do ...@@ -74,6 +76,8 @@ describe 'Milestone draggable', feature: true, js: true do
visit namespace_project_milestone_path(project.namespace, project, milestone) visit namespace_project_milestone_path(project.namespace, project, milestone)
issue.drag_to(issue_target) issue.drag_to(issue_target)
wait_for_ajax
end end
def create_and_drag_merge_request(params = {}) def create_and_drag_merge_request(params = {})
...@@ -82,5 +86,7 @@ describe 'Milestone draggable', feature: true, js: true do ...@@ -82,5 +86,7 @@ describe 'Milestone draggable', feature: true, js: true do
visit namespace_project_milestone_path(project.namespace, project, milestone) visit namespace_project_milestone_path(project.namespace, project, milestone)
page.find("a[href='#tab-merge-requests']").click page.find("a[href='#tab-merge-requests']").click
merge_request.drag_to(merge_request_target) merge_request.drag_to(merge_request_target)
wait_for_ajax
end end
end end
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