Skip to content

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

set definition position explicitly

Ivan Kuchinb4ed89f43359
diff --git a/spec/features/admin/project_life_cycle_step_definitions_spec.rb b/spec/features/admin/project_life_cycle_step_definitions_spec.rb
index dee72c1720c..4e96b95b3ee 100644
--- a/spec/features/admin/project_life_cycle_step_definitions_spec.rb
+++ b/spec/features/admin/project_life_cycle_step_definitions_spec.rb
@@ -31,9 +31,9 @@
require "spec_helper"
RSpec.describe "Projects life cycle settings", :js, with_flag: { stages_and_gates: true } do
- shared_let(:initiating_stage) { create(:project_phase_definition, name: "Initiating") }
+ shared_let(:initiating_stage) { create(:project_phase_definition, name: "Initiating", position: 1) }
shared_let(:executing_stage) do
- create(:project_phase_definition, name: "Executing", start_gate: true, start_gate_name: "Ready to Execute")
+ create(:project_phase_definition, name: "Executing", start_gate: true, start_gate_name: "Ready to Execute", position: 2)
end
let(:definitions_page) { Pages::Admin::Settings::ProjectLifeCycleStepDefinitions.new }