Fix tests flakiness in embed (#7468)

pull/7466/head
Hariom Balhara 2023-03-02 19:28:46 +05:30 committed by GitHub
parent aca0dc1b01
commit 1cdb51f424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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) {