From b2e99075511516abf933f1ef634d97be8047689a Mon Sep 17 00:00:00 2001 From: timvisee Date: Fri, 16 Oct 2020 16:05:51 +0200 Subject: [PATCH] Increase default puppeteer timeout to 60 seconds Fixes https://gitlab.com/timvisee/send/-/issues/2 --- test/frontend/runner.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/frontend/runner.js b/test/frontend/runner.js index 07eff6f7..998298ad 100644 --- a/test/frontend/runner.js +++ b/test/frontend/runner.js @@ -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,