From 0c825de1f8d4c77251385fb2423428ac79f795b3 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Mon, 30 Jul 2018 18:36:33 -0700 Subject: [PATCH] test: unflake page test that was causing us a lot of CI flakes (#2993) --- test/page.spec.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/page.spec.js b/test/page.spec.js index 0453351fb2e..72bcaa7cffd 100644 --- a/test/page.spec.js +++ b/test/page.spec.js @@ -781,8 +781,10 @@ module.exports.addTests = function({testRunner, expect, puppeteer, DeviceDescrip fulfill(); }); }); - frame.evaluate(() => window.stop()); - await navigationPromise; + await Promise.all([ + frame.evaluate(() => window.stop()), + navigationPromise + ]); }); });