Simon-Initiative / oli-torus

Next Generation OLI Authoring and Delivery Platform
https://proton.oli.cmu.edu
MIT License
83 stars 35 forks source link

[BUG FIX] [MER-3393] Time restricted assessments no longer work #4926

Closed simonchoxx closed 3 months ago

simonchoxx commented 3 months ago

MER-3393

This PR adds the functionality to show a countdown on graded pages, as long as the Time Limit option has a value greater than zero.

Also, if a graded page has an active countdown and the countdown ends, it will redirect to the page review.

Another case that is handled is if a graded page has an active countdown, if the user closes the tab or the browser, the page submit will be executed anyway.

https://github.com/Simon-Initiative/oli-torus/assets/16328384/b9942f27-fbc8-4d67-8eed-aa5b0ce09282

nicocirio commented 3 months ago

I am not sure about the expected behavior. By watching the video I was wondering what should happen when a student closes the page: