The previous code is incapable of detecting user behavior (mouse, keyboard) and resetting the timer to avoid auto logout.
The previous code had no unit test.
Description of changes
AutoLogout:
Reduces the idle time limit from 2 hours to 50 minutes and the time from warning to logout from 1 minute to 10 minutes.
Additionally, the time before the component is considered asleep has been reduced from 15 seconds to 5 seconds.
Unit testing
Simulate mouse and keyboard activity and check that the warning modal is displayed after 50 minutes of inactivity and the user is logged out after 10 minutes.
Check that user activity prevents the warning modal from being displayed.
Link to Issue
Description of changes
AutoLogout:
Unit testing
Screenshot(s) or GIF(s) of changes