MDL-82373 core_message: Make message drawer router behat-aware
commit19ef6afe3ed9da9e2f7f3debbb0c7ce88b62cfca
authorAndrew Nicols <andrew@nicols.co.uk>
Fri, 26 Jul 2024 04:33:30 +0000 (26 12:33 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Fri, 26 Jul 2024 04:43:46 +0000 (26 12:43 +0800)
tree324204e30e1fef8358b7da6a88fa495440c4582c
parent0b364eda7b8e673a2e5d234720e465d749c6620a
MDL-82373 core_message: Make message drawer router behat-aware

The drawer router was modifying the DOM in a variety of ways and hiding
content, without any pendingJS checks. As a result, there were cases
where a part of the UI was not visible, but had been rendered and was in
the DOM.

This change wraps the router Go method in a pendingJS call that only
resolves when the router transition completes.

Additionally the lazy load manager had a similar issue.
message/amd/build/message_drawer_lazy_load_list.min.js
message/amd/build/message_drawer_lazy_load_list.min.js.map
message/amd/build/message_drawer_router.min.js
message/amd/build/message_drawer_router.min.js.map
message/amd/src/message_drawer_lazy_load_list.js
message/amd/src/message_drawer_router.js