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
Add spec to have the notification update in case the date updates
Oliver Günther1eecf3f9baa7
diff --git a/spec/features/notifications/notification_center/notification_center_date_alerts_spec.rb b/spec/features/notifications/notification_center/notification_center_date_alerts_spec.rbindex 1fe1aaeae8b..578bb320a1e 100644--- a/spec/features/notifications/notification_center/notification_center_date_alerts_spec.rb+++ b/spec/features/notifications/notification_center/notification_center_date_alerts_spec.rb@@ -109,5 +109,12 @@ describe "Notification center date alerts", js: true, with_settings: { journal_aside_menu.click_item 'Date alert'center.expect_item(notification_wp_double_date_alert, 'Finish date is in 1 day')center.expect_no_item(notification_wp_double_mention)++ # When a work package is updated to a different date+ wp_double_notification.update_column(:due_date, 5.days.from_now)+ page.driver.refresh++ center.expect_item(notification_wp_double_date_alert, 'Finish date is in 5 days')+ center.expect_no_item(notification_wp_double_mention)endend