oss-slu / esp

MIT License
0 stars 5 forks source link

Add the frontend unit test cases for Upload file functionality #47

Closed SiriChandanaGarimella closed 3 weeks ago

SiriChandanaGarimella commented 6 months ago

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:

  1. Clicking on Choose File and uploading an ORCA file
  2. Clicking on Choose File and try to upload any file other than the ORCA file
  3. Clicking on Preview without uploading any file and validating the error message
  4. 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.

SiriChandanaGarimella commented 3 weeks ago

The continuation work for this issue will be done as part of #80, #84 and #85