diff --git a/config/locales/en/activerecord.yml b/config/locales/en/activerecord.yml index 6b9af4a44..62aafbea2 100644 --- a/config/locales/en/activerecord.yml +++ b/config/locales/en/activerecord.yml @@ -276,7 +276,7 @@ en: email_on_comment: "Notify me by email when someone comments on my contents" email_on_comment_reply: "Notify me by email when someone replies to my comments" email_on_direct_message: "Receive emails about direct messages" - newsletter: "Receive by email website relevant information" + newsletter: "Receive relevant information by email" official_position: "Official position" official_position_badge: "Show official position badge" official_level: "Official level" diff --git a/spec/components/subscriptions/edit_component_spec.rb b/spec/components/subscriptions/edit_component_spec.rb index 4e8fa6323..53563feb6 100644 --- a/spec/components/subscriptions/edit_component_spec.rb +++ b/spec/components/subscriptions/edit_component_spec.rb @@ -10,7 +10,7 @@ describe Subscriptions::EditComponent do expect(page).to have_content "Notifications" expect(page).to have_field "Notify me by email when someone comments on my contents", type: :checkbox expect(page).to have_field "Notify me by email when someone replies to my comments", type: :checkbox - expect(page).to have_field "Receive by email website relevant information", type: :checkbox + expect(page).to have_field "Receive relevant information by email", type: :checkbox expect(page).to have_field "Receive a summary of proposal notifications", type: :checkbox expect(page).to have_field "Receive emails about direct messages", type: :checkbox expect(page).to have_button "Save changes" diff --git a/spec/system/emails_spec.rb b/spec/system/emails_spec.rb index 1231106ef..1e3ef1b82 100644 --- a/spec/system/emails_spec.rb +++ b/spec/system/emails_spec.rb @@ -497,7 +497,7 @@ describe "Emails" do expect(email).to have_body_text("To unsubscribe from these emails, visit") expect(email).to have_body_text( edit_subscriptions_path(token: user_with_newsletter_in_segment_2.subscriptions_token)) - expect(email).to have_body_text('and uncheck "Receive by email website relevant information"') + expect(email).to have_body_text('and uncheck "Receive relevant information by email"') end end diff --git a/spec/system/subscriptions_spec.rb b/spec/system/subscriptions_spec.rb index 8cc6b7244..063fcafdc 100644 --- a/spec/system/subscriptions_spec.rb +++ b/spec/system/subscriptions_spec.rb @@ -35,7 +35,7 @@ describe "Subscriptions" do check "Notify me by email when someone comments on my contents" uncheck "Notify me by email when someone replies to my comments" - uncheck "Receive by email website relevant information" + uncheck "Receive relevant information by email" check "Receive a summary of proposal notifications" uncheck "Receive emails about direct messages" click_button "Save changes" @@ -43,7 +43,7 @@ describe "Subscriptions" do expect(page).to have_content "Changes saved" expect(page).to have_field "Notify me by email when someone comments on my contents", checked: true expect(page).to have_field "Notify me by email when someone replies to my comments", checked: false - expect(page).to have_field "Receive by email website relevant information", checked: false + expect(page).to have_field "Receive relevant information by email", checked: false expect(page).to have_field "Receive a summary of proposal notifications", checked: true expect(page).to have_field "Receive emails about direct messages", checked: false end