Browse Source

e2e: Set userDataDir for Puppeteer.

Mr.doob 4 months ago
parent
commit
3a987fad39
2 changed files with 3 additions and 1 deletions
  1. 1 0
      .gitignore
  2. 2 1
      test/e2e/puppeteer.js

+ 1 - 0
.gitignore

@@ -6,6 +6,7 @@
 npm-debug.log
 .jshintrc
 .vs/
+.puppeteer_profile/
 
 test/unit/build
 test/treeshake/index.bundle.js

+ 2 - 1
test/e2e/puppeteer.js

@@ -318,7 +318,8 @@ async function main() {
 		args: flags,
 		defaultViewport: viewport,
 		handleSIGINT: false,
-		protocolTimeout: 0
+		protocolTimeout: 0,
+		userDataDir: './.puppeteer_profile'
 	} );
 
 	// this line is intended to stop the script if the browser (in headful mode) is closed by user (while debugging)

粤ICP备19079148号