Skip to content
Snippets Groups Projects
Verified Commit 551b9727 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: wip web tests

parent 847f3be5
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,12 @@ if (!config.browser) { ...@@ -31,7 +31,12 @@ if (!config.browser) {
headless: 'new', // if you want to see the browser, set this to false headless: 'new', // if you want to see the browser, set this to false
executablePath: config.browser, executablePath: config.browser,
//args: ['--no-sandbox',"--window-size=1440,1000", "--no-sandbox", "--disable-setuid-sandbox", "--disable-gpu"], //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', userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36',
waitUntil: 'load', waitUntil: 'load',
timeout: 0, timeout: 0,
...@@ -82,5 +87,7 @@ if (!config.browser) { ...@@ -82,5 +87,7 @@ if (!config.browser) {
console.log('Tests passed'); console.log('Tests passed');
} }
await page.screenshot({ path: 'google.png' });
await browser.close(); await browser.close();
})(); })();
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment