Compare commits

..

3 Commits

View File

@ -25,7 +25,7 @@ app.get('/ipad.png', async (req, res) => {
// TODO: handle timeout better (ie present a better error to the frontend) // TODO: handle timeout better (ie present a better error to the frontend)
await puppet_page.waitForSelector('#loadingSpinner', { await puppet_page.waitForSelector('#loadingSpinner', {
hidden: true, hidden: true,
timeout: 10, timeout: 10000,
}); });
const screenshot = await puppet_page.screenshot(); const screenshot = await puppet_page.screenshot();
await puppet_page.close(); await puppet_page.close();