With the change of the frontend technology from Angular to React, all the existing frontend test cases became irrelevant.
Write the unit test cases for the file upload functionality using the jest framework.
Cover the following scenarios:
Clicking on Choose File and uploading an ORCA file
Clicking on Choose File and try to upload any file other than the ORCA file
Clicking on Preview without uploading any file and validating the error message
Clicking on Download without uploading any file and validating the error message
Acceptance criteria:
All the test cases should pass and the tests should match the functionality.
With the change of the frontend technology from Angular to React, all the existing frontend test cases became irrelevant. Write the unit test cases for the file upload functionality using the jest framework.
Cover the following scenarios:
Acceptance criteria: All the test cases should pass and the tests should match the functionality.