OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
fix impediment spec
ulferts2ee31e2819f8
diff --git a/modules/backlogs/spec/features/impediments_spec.rb b/modules/backlogs/spec/features/impediments_spec.rbindex 68367ff85a9..814071a1a3a 100644--- a/modules/backlogs/spec/features/impediments_spec.rb+++ b/modules/backlogs/spec/features/impediments_spec.rb@@ -32,11 +32,11 @@ RSpec.describe "Impediments on taskboard", :js,:selenium dolet!(:project) docreate(:project,- types: [story, task],+ types: [story_type, task_type],enabled_module_names: %w(work_package_tracking backlogs))end- let!(:story) { create(:type_feature) }- let!(:task) { create(:type_task) }+ let!(:story_type) { create(:type_feature) }+ let!(:task_type) { create(:type_task) }let!(:priority) { create(:default_priority) }let!(:status) { create(:status, is_default: true) }let!(:other_status) { create(:status) }@@ -45,12 +45,12 @@ RSpec.describe "Impediments on taskboard", :js,old_status: status,new_status: other_status,role:,- type_id: story.id)+ type_id: story_type.id)create(:workflow,old_status: status,new_status: other_status,role:,- type_id: task.id)+ type_id: task_type.id)endlet(:role) docreate(:project_role,@@ -70,27 +70,27 @@ RSpec.describe "Impediments on taskboard", :js,create(:work_package,status:,project:,- type: task,+ type: task_type,version: sprint,parent: story1)endlet!(:story1) docreate(:work_package,project:,- type: story,+ type: story_type,version: sprint)endlet!(:other_task) docreate(:work_package,project:,- type: task,+ type: task_type,version: sprint,parent: other_story)endlet!(:other_story) docreate(:work_package,project:,- type: story,+ type: story_type,version: other_sprint)endlet!(:sprint) do@@ -104,8 +104,8 @@ RSpec.describe "Impediments on taskboard", :js,login_as current_userallow(Setting).to receive(:plugin_openproject_backlogs)- .and_return("story_types" => [story.id.to_s],- "task_type" => task.id.to_s)+ .and_return("story_types" => [story_type.id.to_s],+ "task_type" => task_type.id.to_s)endit "allows creating and updating impediments" do@@ -178,7 +178,7 @@ RSpec.describe "Impediments on taskboard", :js,find("#impediments .subject", text: "New impediment").clickfill_in "subject", with: "Updated impediment"- fill_in "blocks_ids", with: story.id+ fill_in "blocks_ids", with: story1.idclick_on "OK"# Saves successfully