I am new to Cypress, but wanted to capture the time from visiting a page, up until the page is fully rendered and available to use.
I understand I can use the Window: load event to identify when the whole page has loaded, so I could possibly take timestamps in some way from the initial visit/click of the URL/page etc and when the 'load' event has completed, giving me the entire page load/render time.
Is this the best way to go about it and the most reliable method of identifying when a page has fully loaded i.e. all HTML, CSS, JS files etc etc.
UPDATE: I've just seen that cy.visit()
resolves when the page fires its load event.
So am I correct in understanding that once cy.visit()
resolves, all elements of my page would have been loaded & rendered and I don't need to manually measure time of the load event itself?
Thanks!