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
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Javascript
Monster
Commits
cd6f8a80
Verified
Commit
cd6f8a80
authored
1 year ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: wip web tests
parent
9db06fb7
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
-0
8 additions, 0 deletions
test/web/puppeteer.mjs
with
8 additions
and
0 deletions
test/web/puppeteer.mjs
+
8
−
0
View file @
cd6f8a80
import
puppeteer
from
'
puppeteer
'
;
import
puppeteer
from
'
puppeteer
'
;
import
{
unlinkSync
}
from
'
fs
'
;
import
{
existsSync
}
from
'
fs
'
;
// args auswerten mit --path und --browser, get from args
// args auswerten mit --path und --browser, get from args
const
args
=
process
.
argv
;
const
args
=
process
.
argv
;
...
@@ -80,6 +83,11 @@ if (!config.browser) {
...
@@ -80,6 +83,11 @@ if (!config.browser) {
console
.
log
(
'
Tests failed:
'
,
failures
);
console
.
log
(
'
Tests failed:
'
,
failures
);
console
.
log
(
'
Duration:
'
,
duration
);
console
.
log
(
'
Duration:
'
,
duration
);
// rm -rf screenshot.png (javascript)
if
(
existsSync
(
'
screenshot.png
'
))
{
unlinkSync
(
'
screenshot.png
'
);
}
await
page
.
screenshot
({
path
:
'
screenshot.png
'
});
await
page
.
screenshot
({
path
:
'
screenshot.png
'
});
await
browser
.
close
();
await
browser
.
close
();
...
...
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