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

Adapt test to new behavior

Henriette Darge155807531521
diff --git a/spec/features/work_packages/datepicker/datepicker_parent_spec.rb b/spec/features/work_packages/datepicker/datepicker_parent_spec.rb
index 17aaa6c74d5..99ec0ecb2e7 100644
--- a/spec/features/work_packages/datepicker/datepicker_parent_spec.rb
+++ b/spec/features/work_packages/datepicker/datepicker_parent_spec.rb
@@ -109,6 +109,9 @@ RSpec.describe "Datepicker logic on parents", :js, with_settings: { date_format:
datepicker.toggle_scheduling_mode
datepicker.expect_automatic_scheduling_mode
+ # In automatic mode, the dates are set by the children.
+ # Therefore, the calendar sheets also show the start_date of the child first
+ first_monday = Time.zone.parse(child_attributes[:start_date]).beginning_of_month.next_occurring(:monday)
datepicker.expect_disabled(first_monday)
end
end