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 milestone spec
Benjamin Bädorfc24ce49382fb
diff --git a/spec/support/components/datepicker/work_package_datepicker.rb b/spec/support/components/datepicker/work_package_datepicker.rbindex 8f07313cfaa..6481d76a34a 100644--- a/spec/support/components/datepicker/work_package_datepicker.rb+++ b/spec/support/components/datepicker/work_package_datepicker.rb@@ -16,13 +16,14 @@ module Componentsmonth = Date::MONTHNAMES.index(month) if month.is_a?(String)retry_block do# This is for a double-month datepicker- current_month = Date::MONTHNAMES.index(flatpickr_container.first('.cur-month').text)- if current_month == nil+ current_month_element = flatpickr_container.first('.cur-month', between: 0..1)+ if current_month_element != nil+ current_month = Date::MONTHNAMES.index(current_month_element.text)+ else# This is for a single-month datepickercurrent_month = flatpickr_container.first('.flatpickr-monthDropdown-months').value.to_i + 1end-if current_month < monthwhile current_month < monthflatpickr_container.find('.flatpickr-next-month').click