teammates icon indicating copy to clipboard operation
teammates copied to clipboard

Improve Front-End Testing

Open rrtheonlyone opened this issue 4 years ago • 5 comments

We should add further tests to the frontend to ensure our application works as intended.

This issue is created to help keep track of pages that require testing:

Very high priority

  • [ ] Session Submission Page
  • [ ] Session Edit Page
  • [ ] Session Result Page

High priority

  • [ ] Course Join Page
  • [ ] Instructor Home Page
  • [ ] Student Home Page
  • [ ] Courses Page
  • [ ] Course Edit Page
  • [ ] Course Enroll Page
  • [ ] Admin Search Page

Those picking up on this issue can take the example of Admin Home Page Tests and test some of the above pages.

Some things to look out for include:

  • On the initial page load, correct API requests are made and page structure is correctly initialized (unit tests)
  • Given an API output, the internal data structure of the page is correct (unit tests)
  • Given internal data structure, the HTML generated is as expected (snapshot test)
  • Given interaction, the internal data structure is changed as expected (unit tests)
  • Given interaction which results in API requests, the service layer is called with the correct parameters (unit tests)
  • (for results page) Given list of responses, the statistics should be calculated as expected (unit tests)

rrtheonlyone avatar Jan 18 '21 12:01 rrtheonlyone

I will attempt on Student Home Page component.

Derek-Hardy avatar Jan 19 '21 13:01 Derek-Hardy

Hi, still some tests free classes available? Most of them are done as I checked.

SimonHasak avatar Nov 07 '21 20:11 SimonHasak

@SimonHasak Hi, you can look for front end test files that do not have tests yet. It does not have to be in the list above. Alternatively, you can look at existing tests and see if there are any cases not tested for

t-cheepeng avatar Nov 09 '21 01:11 t-cheepeng

Hello, we are a student group from Australian National University, is there any tests need to be done for this issue? We can start working on this issue! Thank you.

XinjiaZZ avatar Oct 13 '22 16:10 XinjiaZZ

Hi, I'm new here.

I was just wondering why this issue remains open even though all 10 tasks of the issue have been completed?

Arnaud-VH avatar Dec 11 '23 16:12 Arnaud-VH