1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-11-10 05:02:45 +01:00

Merge branch '2-fix-puppeteer-timeouts-on-ci' into 'master'

Resolve "Fix puppeteer timeouts on CI"

Closes #2

See merge request timvisee/send!4
This commit is contained in:
Tim Visée 2020-10-16 14:10:56 +00:00
commit 54c182ab0d

View File

@ -34,6 +34,7 @@ const server = app.listen(async function() {
const page = await browser.newPage();
page.on('console', onConsole);
page.on('pageerror', console.log.bind(console));
await page.setDefaultNavigationTimeout(60000);
await page.goto(`http://127.0.0.1:${server.address().port}/test`);
await page.waitFor(() => typeof runner.testResults !== 'undefined', {
polling: 1000,