Skip to content

Commit 3a987fa

Browse files
committed
e2e: Set userDataDir for Puppeteer.
1 parent 798408f commit 3a987fa

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
npm-debug.log
77
.jshintrc
88
.vs/
9+
.puppeteer_profile/
910

1011
test/unit/build
1112
test/treeshake/index.bundle.js

test/e2e/puppeteer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ async function main() {
318318
args: flags,
319319
defaultViewport: viewport,
320320
handleSIGINT: false,
321-
protocolTimeout: 0
321+
protocolTimeout: 0,
322+
userDataDir: './.puppeteer_profile'
322323
} );
323324

324325
// this line is intended to stop the script if the browser (in headful mode) is closed by user (while debugging)

0 commit comments

Comments
 (0)