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 settings paused method selectors to use the new datepicker

Dombi Attila3f6de2fff63e
diff --git a/spec/support/pages/reminders/settings.rb b/spec/support/pages/reminders/settings.rb
index 2f679d18b94..a3db4f41737 100644
--- a/spec/support/pages/reminders/settings.rb
+++ b/spec/support/pages/reminders/settings.rb
@@ -116,17 +116,16 @@ module Pages
end
if first && last
- expect(page).to have_selector('[data-qa-selector="op-datepicker-multi-trigger"]',
- text: "#{first.iso8601} - #{last.iso8601}")
+ expect(page).to have_selector('[data-qa-selector="op-multi-date-picker"] input',
+ value: "#{first.iso8601} - #{last.iso8601}")
end
end
def set_paused(paused, first: nil, last: nil)
if paused
check 'Temporarily pause daily email reminders'
- page.within('op-multi-date-picker') do
- click_button '-'
- end
+
+ page.find('op-multi-date-picker input').click
fill_in 'startDate', with: first.iso8601
fill_in 'endDate', with: last.iso8601
sleep 1