Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Monster
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Javascript
Monster
Commits
551b9727
Verified
Commit
551b9727
authored
1 year ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: wip web tests
parent
847f3be5
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/web/puppeteer.mjs
+8
-1
8 additions, 1 deletion
test/web/puppeteer.mjs
with
8 additions
and
1 deletion
test/web/puppeteer.mjs
+
8
−
1
View file @
551b9727
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment