From d499a6944e7f0d886b51edc4ed2aec445d2dbec0 Mon Sep 17 00:00:00 2001 From: taitus Date: Mon, 19 Sep 2022 14:45:15 +0200 Subject: [PATCH] Fix typos in success messages --- config/locales/en/admin.yml | 10 +++++----- config/locales/en/responders.yml | 4 ++-- spec/system/admin/budget_investments_spec.rb | 18 +++++++++--------- .../answers/documents/documents_spec.rb | 2 +- spec/system/admin/settings_spec.rb | 4 ++-- .../admin/site_customization/documents_spec.rb | 4 ++-- spec/system/admin/system_emails_spec.rb | 2 +- spec/system/budgets/investments_spec.rb | 4 ++-- 8 files changed, 24 insertions(+), 24 deletions(-) diff --git a/config/locales/en/admin.yml b/config/locales/en/admin.yml index cfc5bf653..2663a3436 100644 --- a/config/locales/en/admin.yml +++ b/config/locales/en/admin.yml @@ -528,10 +528,10 @@ en: size: "Size" url: "URL" create: - success_notice: "Document uploaded succesfully" + success_notice: "Document uploaded successfully" unable_notice: "Invalid document" destroy: - success_notice: "Document deleted succesfully" + success_notice: "Document deleted successfully" hidden_users: index: filter: Filter @@ -894,7 +894,7 @@ en: pending_to_be_sent: This is the content pending to be sent moderate_pending: Moderate notification send send_pending: Send pending - send_pending_notification: Pending notifications sent succesfully + send_pending_notification: Pending notifications sent successfully proposal_notification_digest: title: "Proposal notification digest" description: "Gathers all proposal notifications for an user in a single message, to avoid too much emails." @@ -1127,7 +1127,7 @@ en: title: "Create question to poll %{poll}" title_proposal: "Create question" destroy: - notice: "Question deleted succesfully" + notice: "Question deleted successfully" answers: images: add_image: "Add image" @@ -1308,7 +1308,7 @@ en: title: Map configuration help: Here you can customize the way the map is displayed to users. Drag map marker or click anywhere over the map, set desired zoom and click button "Update". flash: - update: Map configuration updated succesfully. + update: Map configuration updated successfully. form: submit: Update how_to_enable: 'To show the map to users you must enable "Proposals and budget investments geolocation" on "Features" tab.' diff --git a/config/locales/en/responders.yml b/config/locales/en/responders.yml index 371cbaf71..be118de2a 100644 --- a/config/locales/en/responders.yml +++ b/config/locales/en/responders.yml @@ -26,12 +26,12 @@ en: poll_booth: "Booth updated successfully." active_poll: "Polls description updated successfully." proposal: "Proposal updated successfully." - budget_investment: "Investment project updated succesfully." + budget_investment: "Investment project updated successfully." topic: "Topic updated successfully." valuator_group: "Valuator group updated successfully" translation: "Translation updated successfully" destroy: - budget_investment: "Investment project deleted succesfully." + budget_investment: "Investment project deleted successfully." topic: "Topic deleted successfully." poll_question_answer_video: "Answer video deleted successfully." valuator_group: "Valuator group deleted successfully" diff --git a/spec/system/admin/budget_investments_spec.rb b/spec/system/admin/budget_investments_spec.rb index 82af1feb0..c0de69ff7 100644 --- a/spec/system/admin/budget_investments_spec.rb +++ b/spec/system/admin/budget_investments_spec.rb @@ -1069,7 +1069,7 @@ describe "Admin budget investments", :admin do select "Marta desc (marta@admins.org)", from: "budget_investment[administrator_id]" click_button "Update" - expect(page).to have_content "Investment project updated succesfully." + expect(page).to have_content "Investment project updated successfully." expect(page).to have_content "Assigned administrator: Marta" end @@ -1102,7 +1102,7 @@ describe "Admin budget investments", :admin do click_button "Update" - expect(page).to have_content "Investment project updated succesfully." + expect(page).to have_content "Investment project updated successfully." within("#assigned_valuators") do expect(page).to have_content("Valentina (v1@valuators.org)") @@ -1127,7 +1127,7 @@ describe "Admin budget investments", :admin do click_button "Update" - expect(page).to have_content "Investment project updated succesfully." + expect(page).to have_content "Investment project updated successfully." within("#assigned_valuator_groups") do expect(page).to have_content("Health") @@ -1151,7 +1151,7 @@ describe "Admin budget investments", :admin do click_button "Update" - expect(page).to have_content "Investment project updated succesfully." + expect(page).to have_content "Investment project updated successfully." within("#assigned_valuator_groups") { expect(page).to have_content("Health") } within("#assigned_valuators") do @@ -1173,7 +1173,7 @@ describe "Admin budget investments", :admin do click_button "Update" - expect(page).to have_content "Investment project updated succesfully." + expect(page).to have_content "Investment project updated successfully." within "#tags" do expect(page).to have_content "Education" @@ -1190,7 +1190,7 @@ describe "Admin budget investments", :admin do fill_in "budget_investment_valuation_tag_list", with: "Refugees, Solidarity" click_button "Update" - expect(page).to have_content "Investment project updated succesfully." + expect(page).to have_content "Investment project updated successfully." within "#tags" do expect(page).to have_content "Refugees" @@ -1216,7 +1216,7 @@ describe "Admin budget investments", :admin do fill_in "budget_investment_valuation_tag_list", with: "Education, Environment" click_button "Update" - expect(page).to have_content "Investment project updated succesfully" + expect(page).to have_content "Investment project updated successfully" visit admin_budget_budget_investment_path(budget_investment.budget, budget_investment) @@ -1244,7 +1244,7 @@ describe "Admin budget investments", :admin do fill_in "budget_investment_valuation_tag_list", with: "Refugees, Solidarity" click_button "Update" - expect(page).to have_content "Investment project updated succesfully." + expect(page).to have_content "Investment project updated successfully." visit budget_investment_path(budget_investment.budget, budget_investment) expect(page).to have_content "Park" @@ -1314,7 +1314,7 @@ describe "Admin budget investments", :admin do click_button "Update" - expect(page).to have_content "Investment project updated succesfully." + expect(page).to have_content "Investment project updated successfully." expect(page).to have_content("Milestone Tags: tag1, tag2") end end diff --git a/spec/system/admin/poll/questions/answers/documents/documents_spec.rb b/spec/system/admin/poll/questions/answers/documents/documents_spec.rb index 1ab90af53..8a3b3e356 100644 --- a/spec/system/admin/poll/questions/answers/documents/documents_spec.rb +++ b/spec/system/admin/poll/questions/answers/documents/documents_spec.rb @@ -30,7 +30,7 @@ describe "Documents", :admin do documentable_attach_new_file(Rails.root.join("spec/fixtures/files/clippy.pdf")) click_button "Save" - expect(page).to have_content "Document uploaded succesfully" + expect(page).to have_content "Document uploaded successfully" expect(page).to have_link "clippy.pdf" end diff --git a/spec/system/admin/settings_spec.rb b/spec/system/admin/settings_spec.rb index d4af85d41..f5da37d3e 100644 --- a/spec/system/admin/settings_spec.rb +++ b/spec/system/admin/settings_spec.rb @@ -81,7 +81,7 @@ describe "Admin settings", :admin do click_on "Update" end - expect(page).to have_content "Map configuration updated succesfully" + expect(page).to have_content "Map configuration updated successfully" end scenario "Should display marker by default" do @@ -104,7 +104,7 @@ describe "Admin settings", :admin do end expect(find("#latitude", visible: :hidden).value).not_to eq "51.48" - expect(page).to have_content "Map configuration updated succesfully" + expect(page).to have_content "Map configuration updated successfully" end end diff --git a/spec/system/admin/site_customization/documents_spec.rb b/spec/system/admin/site_customization/documents_spec.rb index 5e86779d6..5c284c525 100644 --- a/spec/system/admin/site_customization/documents_spec.rb +++ b/spec/system/admin/site_customization/documents_spec.rb @@ -57,7 +57,7 @@ describe "Documents", :admin do attach_file("document_attachment", file_fixture("logo.pdf")) click_button "Upload" - expect(page).to have_content "Document uploaded succesfully" + expect(page).to have_content "Document uploaded successfully" expect(page).to have_link "logo.pdf" end @@ -80,7 +80,7 @@ describe "Documents", :admin do end end - expect(page).to have_content "Document deleted succesfully" + expect(page).to have_content "Document deleted successfully" expect(page).not_to have_content document.title end end diff --git a/spec/system/admin/system_emails_spec.rb b/spec/system/admin/system_emails_spec.rb index 425c5b4d0..cce079532 100644 --- a/spec/system/admin/system_emails_spec.rb +++ b/spec/system/admin/system_emails_spec.rb @@ -356,7 +356,7 @@ describe "System Emails" do expect(email).to deliver_to(voter) expect(email).to have_body_text(proposal_notification.body) - expect(page).to have_content("Pending notifications sent succesfully") + expect(page).to have_content("Pending notifications sent successfully") end end end diff --git a/spec/system/budgets/investments_spec.rb b/spec/system/budgets/investments_spec.rb index 2395be61c..ba3a20e22 100644 --- a/spec/system/budgets/investments_spec.rb +++ b/spec/system/budgets/investments_spec.rb @@ -702,7 +702,7 @@ describe "Budget Investments" do click_button "Update Investment" - expect(page).to have_content "Investment project updated succesfully" + expect(page).to have_content "Investment project updated successfully" expect(page).to have_content "Park improvements" end @@ -1157,7 +1157,7 @@ describe "Budget Investments" do accept_confirm { click_link("Delete") } end - expect(page).to have_content "Investment project deleted succesfully" + expect(page).to have_content "Investment project deleted successfully" visit user_path(user, tab: :budget_investments)