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

Update test to new behavior

Christophe Bliard208e3f62c64a
diff --git a/spec/features/work_packages/datepicker/datepicker_follows_relation_spec.rb b/spec/features/work_packages/datepicker/datepicker_follows_relation_spec.rb
index e9d97b56346..48a337e89df 100644
--- a/spec/features/work_packages/datepicker/datepicker_follows_relation_spec.rb
+++ b/spec/features/work_packages/datepicker/datepicker_follows_relation_spec.rb
@@ -69,13 +69,7 @@ RSpec.describe "Datepicker logic on follow relationships", :js, with_settings: {
datepicker.toggle_working_days_only
datepicker.expect_working_days_only false
- # Toggling non-working days reinitializes the displayed flatpickr, which
- # shows the current date again. We need to wait for it to be reinitialized
- # before showing another date. Ideally the flatpickr should not be
- # reinitialized if it does not need to (dates not changed for instance).
- datepicker.expect_visible_day Date.current
- datepicker.show_date "2024-02-05"
datepicker.expect_disabled Date.parse("2024-02-05")
datepicker.expect_disabled Date.parse("2024-02-04")
datepicker.expect_disabled Date.parse("2024-02-03")