Closed rogoit closed 8 months ago
function isPageLoaded() { return cy.window().then((win) => { return new Promise((resolve, reject) => { win.addEventListener('load', resolve); if (win.document.readyState === 'complete') { resolve(); } }); }); }
function isPageLoaded() { return cy.window().then((win) => { return new Promise((resolve, reject) => { win.addEventListener('load', resolve); if (win.document.readyState === 'complete') { resolve(); } }); }); }