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 missing full stops in date alerts bottom texts
Kabiru Mwenjaff927b717e59
diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex bffc4ecc4b6..fd80166a766 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -681,11 +681,11 @@ en:date_alerts:milestone_date: "Milestone date"overdue: "Overdue"- overdue_since: "since %{difference_in_days}"- property_today: "is today"- property_is: "is in %{difference_in_days}"- property_was: "was %{difference_in_days} ago"- property_is_deleted: "is deleted"+ overdue_since: "since %{difference_in_days}."+ property_today: "is today."+ property_is: "is in %{difference_in_days}."+ property_was: "was %{difference_in_days} ago."+ property_is_deleted: "is deleted."upsale:title: "Date alerts"description: "With date alerts, you will be notified of upcoming start or finish dates so that you never miss or forget an important deadline."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 92a8a53f3e1..88b514c928d 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@@ -195,7 +195,7 @@ RSpec.describe "Notification center date alerts", :js, :with_cuprite,it "shows the upsale page" doside_menu.click_item "Date alert"- expect(page).to have_current_path /notifications\/date_alerts/+ expect(page).to have_current_path(/notifications\/date_alerts/)expect(page).to have_text "Date alerts is an Enterprise"expect(page).to have_text "Please upgrade to a paid plan "@@ -207,18 +207,18 @@ RSpec.describe "Notification center date alerts", :js, :with_cuprite,context "with date alerts ee", with_ee: %i[date_alerts] doit "shows the date alerts according to specification" do- center.expect_item(notification_wp_start_past, "Start date was 1 day ago")- center.expect_item(notification_wp_start_future, "Start date is in 7 days")+ center.expect_item(notification_wp_start_past, "Start date was 1 day ago.")+ center.expect_item(notification_wp_start_future, "Start date is in 7 days.")- center.expect_item(notification_wp_due_past, "Overdue since 3 days")- center.expect_item(notification_wp_due_future, "Finish date is in 3 days")+ center.expect_item(notification_wp_due_past, "Overdue since 3 days.")+ center.expect_item(notification_wp_due_future, "Finish date is in 3 days.")- center.expect_item(notification_milestone_past, "Overdue since 2 days")- center.expect_item(notification_milestone_future, "Milestone date is in 1 day")+ center.expect_item(notification_milestone_past, "Overdue since 2 days.")+ center.expect_item(notification_milestone_future, "Milestone date is in 1 day.")- center.expect_item(notification_wp_unset_date, "Finish date is deleted")+ center.expect_item(notification_wp_unset_date, "Finish date is deleted.")- center.expect_item(notification_wp_due_today, "Finish date is today")+ center.expect_item(notification_wp_due_today, "Finish date is today.")# Doesn't show the date alert for the mention, not the alertcenter.expect_item(notification_wp_double_mention, /(seconds|minutes) ago by Anonymous/)@@ -227,7 +227,7 @@ RSpec.describe "Notification center date alerts", :js, :with_cuprite,# When switch to date alerts, it shows the alert, no longer the mentionside_menu.click_item "Date alert"wait_for_network_idle- center.expect_item(notification_wp_double_date_alert, "Finish date is in 1 day")+ center.expect_item(notification_wp_double_date_alert, "Finish date is in 1 day.")center.expect_no_item(notification_wp_double_mention)# Ensure that start is created later than due for implicit ID sorting@@ -236,7 +236,7 @@ RSpec.describe "Notification center date alerts", :js, :with_cuprite,# We see that start is actually the newest ID, hence shown as the primary notification# but the date alert still shows the finish date- center.expect_item(double_alert_start, "Finish date is in 1 day")+ center.expect_item(double_alert_start, "Finish date is in 1 day.")center.expect_no_item(double_alert_due)# Opening a date alert opens in overview@@ -262,7 +262,7 @@ RSpec.describe "Notification center date alerts", :js, :with_cuprite,page.driver.refreshwait_for_reload- center.expect_item(notification_wp_double_date_alert, "Finish date is in 5 days")+ center.expect_item(notification_wp_double_date_alert, "Finish date is in 5 days.")center.expect_no_item(notification_wp_double_mention)endenddiff --git a/spec/mailers/digest_mailer_spec.rb b/spec/mailers/digest_mailer_spec.rbindex 4dabc26717c..70452b2fba1 100644--- a/spec/mailers/digest_mailer_spec.rb+++ b/spec/mailers/digest_mailer_spec.rb@@ -159,7 +159,7 @@ RSpec.describe DigestMailer doendit "matches generated text" do- expect(mail_body).to have_text("Start date was 1 day ago")+ expect(mail_body).to have_text("Start date was 1 day ago.")endend@@ -175,7 +175,7 @@ RSpec.describe DigestMailer doendit "matches generated text" do- expect(mail_body).to have_text("Start date is in 2 days")+ expect(mail_body).to have_text("Start date is in 2 days.")endend@@ -191,7 +191,7 @@ RSpec.describe DigestMailer doendit "matches generated text" do- expect(mail_body).to have_text("Overdue since 3 days")+ expect(mail_body).to have_text("Overdue since 3 days.")endend@@ -207,7 +207,7 @@ RSpec.describe DigestMailer doendit "matches generated text" do- expect(mail_body).to have_text("Finish date is in 3 days")+ expect(mail_body).to have_text("Finish date is in 3 days.")endend@@ -224,7 +224,7 @@ RSpec.describe DigestMailer doendit "matches generated text" do- expect(mail_body).to include('<span style="color: #C92A2A">Overdue since 2 days</span>')+ expect(mail_body).to include('<span style="color: #C92A2A">Overdue since 2 days.</span>')endend@@ -241,7 +241,7 @@ RSpec.describe DigestMailer doendit "matches generated text" do- expect(mail_body).to have_text("Milestone date is in 1 day")+ expect(mail_body).to have_text("Milestone date is in 1 day.")endend@@ -255,7 +255,7 @@ RSpec.describe DigestMailer doendit "matches generated text" do- expect(mail_body).to have_text("Finish date is deleted")+ expect(mail_body).to have_text("Finish date is deleted.")endend@@ -271,7 +271,7 @@ RSpec.describe DigestMailer doendit "matches generated text" do- expect(mail_body).to have_text("Finish date is today")+ expect(mail_body).to have_text("Finish date is today.")endend@@ -287,7 +287,7 @@ RSpec.describe DigestMailer doendit "matches generated text" do- expect(mail_body).to have_text("Finish date is in 1 day")+ expect(mail_body).to have_text("Finish date is in 1 day.")endend