Browse Source

Update error messages

pull/2725/head
Kat 8 months ago
parent
commit
2a37490531
  1. 4
      config/locales/en.yml
  2. 2
      spec/features/bulk_upload_lettings_logs_spec.rb
  3. 2
      spec/features/bulk_upload_sales_logs_spec.rb

4
config/locales/en.yml

@ -90,13 +90,13 @@ en:
file: file:
blank: "Select which file to upload." blank: "Select which file to upload."
not_csv: "Your file must be in CSV format." not_csv: "Your file must be in CSV format."
file_too_large: "File must be 10MB or less." file_too_large: "File must be 10MB or less. Check your file and delete data that does not need to be uploaded."
forms/bulk_upload_sales/upload_your_file: forms/bulk_upload_sales/upload_your_file:
attributes: attributes:
file: file:
blank: "Select which file to upload." blank: "Select which file to upload."
not_csv: "Your file must be in CSV format." not_csv: "Your file must be in CSV format."
file_too_large: "File must be 10MB or less." file_too_large: "File must be 10MB or less. Check your file and delete data that does not need to be uploaded."
forms/bulk_upload_lettings/needstype: forms/bulk_upload_lettings/needstype:
attributes: attributes:
needstype: needstype:

2
spec/features/bulk_upload_lettings_logs_spec.rb

@ -91,7 +91,7 @@ RSpec.describe "Bulk upload lettings log" do
attach_file "file", file_fixture("2023_24_lettings_bulk_upload.xlsx") attach_file "file", file_fixture("2023_24_lettings_bulk_upload.xlsx")
click_button("Upload") click_button("Upload")
expect(page).to have_content("File must be 10MB or less") expect(page).to have_content("File must be 10MB or less. Check your file and delete data that does not need to be uploaded.")
end end
end end
# rubocop:enable RSpec/AnyInstance # rubocop:enable RSpec/AnyInstance

2
spec/features/bulk_upload_sales_logs_spec.rb

@ -89,7 +89,7 @@ RSpec.describe "Bulk upload sales log" do
attach_file "file", file_fixture("2023_24_lettings_bulk_upload.xlsx") attach_file "file", file_fixture("2023_24_lettings_bulk_upload.xlsx")
click_button("Upload") click_button("Upload")
expect(page).to have_content("File must be 10MB or less") expect(page).to have_content("File must be 10MB or less. Check your file and delete data that does not need to be uploaded.")
end end
end end
# rubocop:enable RSpec/AnyInstance # rubocop:enable RSpec/AnyInstance

Loading…
Cancel
Save