Skip to content

Commit

Permalink
Try and speed up some tests by not waiting for load?
Browse files Browse the repository at this point in the history
 🐿 v2.7.0
  • Loading branch information
adgad committed Mar 15, 2018
1 parent ee04b17 commit 3d2d16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/smoke/puppeteer-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3d2d16d

Please sign in to comment.