Having selected the UTX JSON upload and uploading a non-UTX JSON file OR any other filetype, the following should happen:
To be discussed:
It would be convenient for users if they could simply select "Upload data" and both XLSX and JSON files would be displayed. This would mean that users could select any FCL JSON, UTX JSON or AiO XLSX after clicking on the "Upload Data" button. However, users would need to know very well what they are doing because if not, this bigger freedom might lead to confusion as to what kind of file should be loaded.
If we stay offering three upload options (FCL JSON, UTX JSON and AiO XLSX), should we throw an error if a user chose to upload a UTX JSON but selected a FCL JSON?
Application Behavior:
If a user uploads a non-UTX JSON file OR any other filetype:
[ ] The graph currently loaded in the application is not changed.
[ ] An error toaster is shown.
[ ] The error toaster contains a message beginning with Invalid data format. Please select a UTX JSON file with the correct format!
Testing:
There is a Cypress test asserting the following:
[ ] When a file is uploaded that is not a UTX JSON file, no new graph is loaded.
[ ] When a file is uploaded that is not a UTX JSON file, a currently loaded graph is not lost.
[ ] When a file is uploaded that is not a UTX JSON file, an error toaster containing a message as described above is shown.
Having selected the UTX JSON upload and uploading a non-UTX JSON file OR any other filetype, the following should happen: To be discussed:
Application Behavior:
If a user uploads a non-UTX JSON file OR any other filetype:
Invalid data format. Please select a UTX JSON file with the correct format!
Testing:
There is a Cypress test asserting the following: