From b1bb60d8ace4f7697c4552d3ce4f5561e889ba86 Mon Sep 17 00:00:00 2001 From: Ng Chin Kiong Date: Fri, 29 Nov 2019 00:22:06 +0800 Subject: [PATCH] fixed puppeteer TimeoutError --- core/util/runPuppet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/util/runPuppet.js b/core/util/runPuppet.js index 373aae921..cc76ffa08 100644 --- a/core/util/runPuppet.js +++ b/core/util/runPuppet.js @@ -118,7 +118,7 @@ async function processScenarioView (scenario, variantOrScenarioLabelSafe, scenar if (isReference && scenario.referenceUrl) { url = scenario.referenceUrl; } - await page.goto(translateUrl(url)); + await page.goto(translateUrl(url), { waitUntil: 'domcontentloaded' }); await injectBackstopTools(page);