diff --git a/test/web/puppeteer.mjs b/test/web/puppeteer.mjs
index 964279708fc290d843d89d15dbf3698de97c597e..9d34efc5927a67a93250defaa871c602291698fa 100644
--- a/test/web/puppeteer.mjs
+++ b/test/web/puppeteer.mjs
@@ -46,12 +46,22 @@ if (!config.browser) {
     
     const title = await page.title();
     console.log('Page title:', title);
+
+    page.on('console', async e => {
+        const args = await Promise.all(e.args().map(a => a.jsonValue()));
+        console[e.type() === 'warning' ? 'warn' : e.type()](...args);
+    });
     
 
 
     console.log('Running tests...');
     await page.waitForFunction('document.getElementById("mocha-done").textContent.length > 0', 
-        { timeout: 10000000 }
+        { 
+            timeout: 1000000,
+            polling: 1000
+            
+            
+        }
     ) ;
 
     const passes = await page.evaluate(() => document.getElementById('mocha-stats').querySelector('li.passes').textContent);