F-08mediumFiles
Only .csv files are accepted
The input accepts .csv, but a file of another type still reaches it when it is set from outside, and the page then shows an error. The case checks that the agent reads the error and then retries with the right file. Upload paths are relative to the repository root (the folder that contains package.json and public/).
Upload sample-notes.txt as the CSV file and see it rejected, then upload sample-orders.csv instead.
Endorphin steps
- Navigate to ${BASE_URL}/sandbox/f-08/
- Upload "public/files/sample-notes.txt" to "CSV file"
- Verify "Only .csv files are accepted (sample-notes.txt rejected)" is visible
- Upload "public/files/sample-orders.csv" to "CSV file"
- Verify "Accepted sample-orders.csv" is visible
Pass when
The result line says first "Only .csv files are accepted (sample-notes.txt rejected)" and in the end "Accepted sample-orders.csv".