Fix tests flakiness in embed (#7468)

This commit is contained in:
Hariom Balhara
2023-03-02 13:58:46 +00:00
committed by GitHub
parent aca0dc1b01
commit 1cdb51f424
@@ -56,7 +56,8 @@ export const getEmbedIframe = async ({ page, pathname }: { page: Page; pathname:
setTimeout(() => {
clearInterval(interval);
resolve(false);
}, 5000);
// This is the time embed-iframe.ts loads in the iframe and fires atleast one event. Also, it is a load of entire React Application so it can sometime take more time even on CI.
}, 15000);
});
});
if (!iframeReady) {