From 3d2d16dc895c2edcdc7909364d579717373e4bdf Mon Sep 17 00:00:00 2001 From: Arjun Gadhia Date: Thu, 15 Mar 2018 16:07:33 +0000 Subject: [PATCH] =?UTF-8?q?Try=20and=20speed=20up=20some=20tests=20by=20no?= =?UTF-8?q?t=20waiting=20for=20load=3F=20=20=F0=9F=90=BF=20v2.7.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/smoke/puppeteer-page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/smoke/puppeteer-page.js b/lib/smoke/puppeteer-page.js index 6db991e..824ad66 100644 --- a/lib/smoke/puppeteer-page.js +++ b/lib/smoke/puppeteer-page.js @@ -155,7 +155,7 @@ class PuppeteerPage { } }); - const waitUntil = 'load'; + const waitUntil = this.check.elements || this.check.networkRequests ? 'load' : 'domcontentloaded'; this.response = await this.page.goto(this.url, { waitUntil }); if(this.check.cssCoverage) { this.coverageReports = await this.page.coverage.stopCSSCoverage();