Hi,
We need to signal Cypress somehow that a LiveView page finished loading, which should ideally work across the whole platform.
It’s pretty easy with the navigation - we just tapped into the phx:page-loading-stop
event.
window.addEventListener('phx:page-loading-stop', (info) => {
if (window.Cypress) {
window.componentsReady = true;
}
}
But phx:page-loading-stop
is not fired on an initial page load, and I wonder if there is another event for that?
TLDR: we are looking for an analogy of DOMContentLoaded
for Liveview.
Thanks.