Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: increase total timeout when running multiple browsers (#2490)

Dmitry Gozmanb77a4b584019
diff --git a/test/test.js b/test/test.js
index b2c306967b..586a87c7f7 100644
--- a/test/test.js
+++ b/test/test.js
@@ -16,7 +16,6 @@
*/
const fs = require('fs');
-const path = require('path');
const utils = require('./utils');
const TestRunner = require('../utils/testrunner/');
const {Environment} = require('../utils/testrunner/Test');
@@ -57,7 +56,7 @@ function collect(browserNames) {
const testRunner = new TestRunner({
timeout,
- totalTimeout: process.env.CI ? 30 * 60 * 1000 : 0, // 30 minutes on CI
+ totalTimeout: process.env.CI ? 30 * 60 * 1000 * browserNames.length : 0, // 30 minutes per browser on CI
parallel,
breakOnFailure: process.argv.indexOf('--break-on-failure') !== -1,
verbose: process.argv.includes('--verbose'),