prime-simplereport
prime-simplereport copied to clipboard
Automated test coverage that CSV upload templates pass validations
Description
When we change the schema for our bulk uploader, we have sometimes forgotten to update the bulk upload template to fit that schema. It's a bad look if our own sample CSV doesn't pass our bulk upload validations. Additionally, users may use the template to work off of and this doesn't set them up for success if it's not correct.
Proposed solution
Add some kind of end-to-end test that takes our bulk upload template and the sample data CSV and attempts to upload them. Alternately we could pass the CSVs to our validate method in our bulk upload code.