Wait for network idle for more reliable ready state

This commit is contained in:
John Hildenbiddle
2020-07-23 00:36:09 -04:00
parent f5aed8a443
commit 34c6c041f3
+3
View File
@@ -120,6 +120,9 @@ async function docsifyInit(options) {
await page.waitForSelector(settings.waitForSelector);
}
// Wait for all network requests to complete
await page.waitForLoadState('networkidle');
// Debug
if (settings.debug) {
await jestPlaywright.debug();