Because some important functions of Pressbooks (like cloning, exporting, or importing) can take quite a bit of time, Pressbooks displays progress bars which give users updates in realtime about what actions are being performed. This includes a timer that records the amount of time (in seconds) that's elapsed since the export began.
When users minimize the window or navigate to another tab, the export continues but the timer and progress bar stall and remain at the time that the user last saw. The timer only resumes when users revisit the window.
Steps to Reproduce
Choose a test book that is larger than normal so that exports take longer than a few seconds
Navigate to Exports from the left sidebar menu
Select a few files, then export
Watch the timer, then leave the window for a few seconds
Return to the page and see if the actual time that elapsed matches the time that elapsed on the progress bar
Expected behavior: Progress bar timer shows an accurate representation of how long it has taken to export a file
Actual behavior: Progress bar only works when users have browser tab open
Prerequisites
Description
Because some important functions of Pressbooks (like cloning, exporting, or importing) can take quite a bit of time, Pressbooks displays progress bars which give users updates in realtime about what actions are being performed. This includes a timer that records the amount of time (in seconds) that's elapsed since the export began.
When users minimize the window or navigate to another tab, the export continues but the timer and progress bar stall and remain at the time that the user last saw. The timer only resumes when users revisit the window.
Steps to Reproduce
Expected behavior: Progress bar timer shows an accurate representation of how long it has taken to export a file
Actual behavior: Progress bar only works when users have browser tab open