From 551b9727d6b1198538355f07a687baf5ad1716b1 Mon Sep 17 00:00:00 2001
From: Volker Schukai <volker.schukai@schukai.com>
Date: Wed, 15 May 2024 16:48:21 +0200
Subject: [PATCH] fix: wip web tests

---
 test/web/puppeteer.mjs | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/test/web/puppeteer.mjs b/test/web/puppeteer.mjs
index 743368fe0..85108a276 100644
--- a/test/web/puppeteer.mjs
+++ b/test/web/puppeteer.mjs
@@ -31,7 +31,12 @@ if (!config.browser) {
         headless: 'new', // if you want to see the browser, set this to false
         executablePath: config.browser,
         //args: ['--no-sandbox',"--window-size=1440,1000", "--no-sandbox", "--disable-setuid-sandbox", "--disable-gpu"],
-        args: ["--disable-gpu"],
+        args: ["--disable-gpu",
+            '--no-sandbox',
+            '--disable-setuid-sandbox',
+            '--user-data-dir=/tmp'
+        ],
+        
         userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36',
         waitUntil: 'load', 
         timeout: 0,
@@ -82,5 +87,7 @@ if (!config.browser) {
         console.log('Tests passed');
     }
 
+    await page.screenshot({ path: 'google.png' });
+
     await browser.close();
 })();
\ No newline at end of file
-- 
GitLab