Fix JavaScript unit test regressions from recent page loading changes.

Review Request #13295 — Created Sept. 29, 2023 and submitted

Information

Review Board
release-6.x

Reviewers

Work was done for 6.0 beta 3 to delay rendering of pages until renders
all completed, in order to avoid page jumps. That work regressed some
unit tests, which were no longer testing the correct state.

This fixes those tests by better mirroring the body element and
relevant containers all within $testsScratch, resetting their styling,
and managing states while testing to ensure we're working with the
equivalent of the styles used while loading a page. It then tests the
newer visibility states expected during and after page load.

JavaScript unit tests all pass on Firefox and Chrome.

Summary ID
Fix JavaScript unit test regressions from recent page loading changes.
Work was done for 6.0 beta 3 to delay rendering of pages until renders all completed, in order to avoid page jumps. That work regressed some unit tests, which were no longer testing the correct state. This fixes those tests by better mirroring the `body` element and relevant containers all within `$testsScratch`, resetting their styling, and managing states while testing to ensure we're working with the equivalent of the styles used while loading a page. It then tests the newer visibility states expected during and after page load.
29b8a53675e101a571b43a9069fcd3a91e0111c0
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-6.x (7d6c15f)