mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: increase test timeout to 20 seconds on Appveyour (#3918)
Looks like Appveyour is indeed slow; try giving it more time to run tests. Drive-by: support TIMEOUT env variable for Puppeteer tests.
This commit is contained in:
@@ -22,7 +22,7 @@ const {Matchers} = require('../utils/testrunner/');
|
||||
const YELLOW_COLOR = '\x1b[33m';
|
||||
const RESET_COLOR = '\x1b[0m';
|
||||
|
||||
module.exports.addTests = ({testRunner, product, puppeteer, Errors, DeviceDescriptors, slowMo, headless}) => {
|
||||
module.exports.addTests = ({testRunner, product, puppeteer, Errors, DeviceDescriptors}) => {
|
||||
const {describe, xdescribe, fdescribe} = testRunner;
|
||||
const {it, fit, xit} = testRunner;
|
||||
const {beforeAll, beforeEach, afterAll, afterEach} = testRunner;
|
||||
@@ -30,6 +30,9 @@ module.exports.addTests = ({testRunner, product, puppeteer, Errors, DeviceDescri
|
||||
const CHROME = product === 'Chromium';
|
||||
const FFOX = product === 'Firefox';
|
||||
|
||||
const headless = (process.env.HEADLESS || 'true').trim().toLowerCase() === 'true';
|
||||
const slowMo = parseInt((process.env.SLOW_MO || '0').trim(), 10);
|
||||
|
||||
const defaultBrowserOptions = {
|
||||
handleSIGINT: false,
|
||||
executablePath: CHROME ? process.env.CHROME : process.env.FFOX,
|
||||
|
||||
Reference in New Issue
Block a user