1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-20 21:59:38 +02:00

Sync notifications and troubleshooting guides (#998)

* Add help articles

* Broadcast sync messages as notifications

* Lint fixes

* more lint fixes

* Remove redundant code
This commit is contained in:
Zach Gollwitzer 2024-07-18 14:39:38 -04:00 committed by GitHub
parent b200b71284
commit fa08f027c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 256 additions and 97 deletions

View file

@ -81,7 +81,7 @@ class ImportsControllerTest < ActionDispatch::IntegrationTest
patch load_import_url(@empty_import), params: { import: { raw_csv_str: malformed_csv_str } }
assert_response :unprocessable_entity
assert_equal "Raw csv str is not a valid CSV format", flash[:error]
assert_equal "Raw csv str is not a valid CSV format", flash[:alert]
end
test "should flash error message if invalid CSV file upload" do
@ -91,14 +91,14 @@ class ImportsControllerTest < ActionDispatch::IntegrationTest
patch upload_import_url(@empty_import), params: { import: { raw_csv_str: Rack::Test::UploadedFile.new(temp, ".csv") } }
assert_response :unprocessable_entity
assert_equal "Raw csv str is not a valid CSV format", flash[:error]
assert_equal "Raw csv str is not a valid CSV format", flash[:alert]
end
end
test "should flash error message if no fileprovided for upload" do
patch upload_import_url(@empty_import), params: { import: { raw_csv_str: nil } }
assert_response :unprocessable_entity
assert_equal "Please select a file to upload", flash[:error]
assert_equal "Please select a file to upload", flash[:alert]
end
test "should get configure" do