replace the word message with notification on proposal notification screens

This commit is contained in:
Andrew Davis
2021-06-04 19:58:11 +08:00
parent 5f4dd48e25
commit 8991bb0302
5 changed files with 14 additions and 14 deletions

View File

@@ -535,7 +535,7 @@ en:
comments: Comments comments: Comments
latest_comments: Latest messages latest_comments: Latest messages
messages: messages:
send_notification: Send message to proposal followers send_notification: Send notification to proposal followers
previous_notifications: See previous notifications previous_notifications: See previous notifications
polls: polls:
index: index:
@@ -670,9 +670,9 @@ en:
voted: "You have voted %{answer}" voted: "You have voted %{answer}"
proposal_notifications: proposal_notifications:
new: new:
title: "Send message" title: "Send notification"
submit_button: "Send message" submit_button: "Send notification"
info_about_receivers: "This message will be sent to <strong>%{count} people</strong> and it will be visible in %{proposal_page}.<br> Messages are not sent immediately, users will receive periodically an email with all proposal notifications." info_about_receivers: "This notification will be sent to <strong>%{count} people</strong> and it will be visible in %{proposal_page}.<br> Notifications are not sent immediately, users will periodically receive an email with all proposal notifications."
proposal_page: "the proposal's page" proposal_page: "the proposal's page"
show: show:
back: "Go back to my content" back: "Go back to my content"

View File

@@ -535,7 +535,7 @@ es:
comments: Comentarios comments: Comentarios
latest_comments: Últimos mensajes latest_comments: Últimos mensajes
messages: messages:
send_notification: Enviar mensaje a los que siguen la propuesta send_notification: Enviar notificación a los que siguen la propuesta
previous_notifications: Ver notificaciones anteriores previous_notifications: Ver notificaciones anteriores
polls: polls:
index: index:
@@ -670,9 +670,9 @@ es:
voted: "Has votado %{answer}" voted: "Has votado %{answer}"
proposal_notifications: proposal_notifications:
new: new:
title: "Enviar mensaje" title: "Enviar notificación"
submit_button: "Enviar mensaje" submit_button: "Enviar notificación"
info_about_receivers: "Este mensaje se enviará a <strong>%{count} usuarios</strong> y se publicará en %{proposal_page}.<br> El mensaje no se enviará inmediatamente, los usuarios recibirán periódicamente un email con todas las notificaciones de propuestas." info_about_receivers: "Esta notificación se enviará a <strong>%{count} usuarios</strong> y se publicará en %{proposal_page}.<br> Las notificaciones no se enviarán inmediatamente, los usuarios recibirán periódicamente un email con todas las notificaciones de propuestas."
proposal_page: "la página de la propuesta" proposal_page: "la página de la propuesta"
show: show:
back: "Volver a mi contenido" back: "Volver a mi contenido"

View File

@@ -39,11 +39,11 @@ module Notifications
click_link "Message to users" click_link "Message to users"
end end
click_link "Send message to proposal followers" click_link "Send notification to proposal followers"
fill_in "proposal_notification_title", with: "Thanks for supporting proposal: #{proposal.title}" fill_in "proposal_notification_title", with: "Thanks for supporting proposal: #{proposal.title}"
fill_in "proposal_notification_body", with: "Please share it with others! #{proposal.summary}" fill_in "proposal_notification_body", with: "Please share it with others! #{proposal.summary}"
click_button "Send message" click_button "Send notification"
expect(page).to have_content "Your message has been sent correctly." expect(page).to have_content "Your message has been sent correctly."
Notification.last Notification.last

View File

@@ -356,13 +356,13 @@ describe "Proposal's dashboard" do
click_link "Message to users" click_link "Message to users"
end end
expect(page).to have_link("Send message to proposal followers") expect(page).to have_link("Send notification to proposal followers")
expect(page).to have_link("See previous notifications") expect(page).to have_link("See previous notifications")
end end
scenario "Dashboard has a link to send message to proposal supporters" do scenario "Dashboard has a link to send message to proposal supporters" do
visit messages_proposal_dashboard_path(proposal) visit messages_proposal_dashboard_path(proposal)
click_link("Send message to proposal followers") click_link("Send notification to proposal followers")
fill_in "Title", with: "Thank you for supporting my proposal" fill_in "Title", with: "Thank you for supporting my proposal"
fill_in "Message", with: "Please share it with others!" fill_in "Message", with: "Please share it with others!"

View File

@@ -14,7 +14,7 @@ describe "Proposal Notifications" do
click_link "Message to users" click_link "Message to users"
end end
click_link "Send message to proposal followers" click_link "Send notification to proposal followers"
fill_in "proposal_notification_title", with: "Thank you for supporting my proposal" fill_in "proposal_notification_title", with: "Thank you for supporting my proposal"
fill_in "proposal_notification_body", with: "Please share it with "\ fill_in "proposal_notification_body", with: "Please share it with "\
@@ -159,7 +159,7 @@ describe "Proposal Notifications" do
click_link "Message to users" click_link "Message to users"
end end
expect(page).to have_link "Send message to proposal followers" expect(page).to have_link "Send notification to proposal followers"
end end
scenario "Accessing form directly" do scenario "Accessing form directly" do