test: unflake page test that was causing us a lot of CI flakes (#2993)

This commit is contained in:
Andrey Lushnikov 2018-07-30 18:36:33 -07:00 committed by GitHub
parent 89f968b96a
commit 0c825de1f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
]);
});
});