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

Use month days calendar to avoid selecting week numbers

Oliver Günther5655859596d8
diff --git a/spec/support/pages/reminders/settings.rb b/spec/support/pages/reminders/settings.rb
index 5f8c61e29b2..01f2da66047 100644
--- a/spec/support/pages/reminders/settings.rb
+++ b/spec/support/pages/reminders/settings.rb
@@ -126,8 +126,8 @@ module Pages
if paused
check 'Temporarily pause daily email reminders'
page.find('.flatpickr-input').click
- page.find('.flatpickr-day:not(.nextMonthDay)', text: first.day, exact_text: true).click
- page.find('.flatpickr-day:not(.nextMonthDay)', text: last.day, exact_text: true).click
+ page.find('.flatpickr-days .flatpickr-day:not(.nextMonthDay)', text: first.day, exact_text: true).click
+ page.find('.flatpickr-days .flatpickr-day:not(.nextMonthDay)', text: last.day, exact_text: true).click
expect(page).to have_selector('.flatpickr-input') do |node|
expect(node.value).to eq "#{first.iso8601} - #{last.iso8601}"