-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest-puppeteer.config.js
40 lines (34 loc) · 1.64 KB
/
jest-puppeteer.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
module.exports = {
launch: {
headless: false, // Enable UI mode
// slowMo: 250, // slow down by 250ms
// slowMo: 200, // slow down by 250ms
// slowMo: 100, // slow down by 250ms
slowMo: 50, // slow down by 250ms
// slowMo: 10, // slow down by 250ms
// headless: process.env.HEADLESS !== 'false',
// slowMo: process.env.SLOWMO ? process.env.SLOWMO : 0,
// devtools: true // Enable devtools
// PUPPETEER_PRODUCT=firefox npm install
// product: "chrome",
// product: 'chrome', // Launch chrome browser
// product: 'firefox', // Launch firefox browser
// ignoreHTTPSErrors: true, // Ignore HTTPS errors during navigation
// executablePath: "/Applications/Google Chrome", // Path to a browser executable
// args: ['--window-size=1920,1080'], // Browser windowsize
args: [
'--no-sandbox', // Disables the sandbox for all process types that are normally sandboxed.
"--start-fullscreen", // Browser windowsize
// '--start-maximized' // Start with maximized windosixe
], // chrome arguments
defaultViewport: null, // Ignore default viewport size
// defaultViewport: {width:1920,height:1080}, // viewport for each page. Defaults to an 800x600 viewport.
// defaultViewport: '1120x1680', // viewport for each page. Defaults to an 800x600 viewport. ??
// width: '100', // page width in pixels. ??
// height: '100', // page height in pixels. ??
// timeout: 60000, // timeout in ms //Maximum time in milliseconds to wait for the browser instance to start. Defaults to 30000 (30 seconds). Pass 0 to disable timeout.
// , //
// , //
// , //
},
};