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

Fix spec

Christophe Bliard7fdd2d139214
diff --git a/spec/features/work_packages/datepicker/datepicker_logic_spec.rb b/spec/features/work_packages/datepicker/datepicker_logic_spec.rb
index 48d570f241b..20d1c3b6921 100644
--- a/spec/features/work_packages/datepicker/datepicker_logic_spec.rb
+++ b/spec/features/work_packages/datepicker/datepicker_logic_spec.rb
@@ -1104,7 +1104,8 @@ RSpec.describe "Datepicker modal logic test cases (WP #43539)", :js, with_settin
datepicker.expect_working_days_only true
# The non-working days are disabled
- datepicker.expect_not_disabled Date.parse("2022-06-25")
+ datepicker.expect_disabled Date.parse("2022-06-25")
+ datepicker.expect_disabled Date.parse("2022-06-26")
# The rest is not disabled
datepicker.expect_not_disabled Date.parse("2022-06-27")
@@ -1114,6 +1115,10 @@ RSpec.describe "Datepicker modal logic test cases (WP #43539)", :js, with_settin
datepicker.uncheck_working_days_only
+ # The non-working days are no longer disabled
+ datepicker.expect_not_disabled Date.parse("2022-06-25")
+ datepicker.expect_not_disabled Date.parse("2022-06-26")
+
# Since the due date was touched before, the value is kept and duration adjusted
datepicker.expect_due_date "2022-06-27", disabled: false
datepicker.expect_duration 8