Increase default puppeteer timeout to 60 seconds

Fixes https://gitlab.com/timvisee/send/-/issues/2
This commit is contained in:
timvisee 2020-10-16 16:05:51 +02:00
parent b15c017dcd
commit b2e9907551
No known key found for this signature in database
GPG key ID: B8DB720BC383E172

View file

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