Added default timeout override
This commit is contained in:
parent
7d3eeca060
commit
2f0aa1a30f
|
@ -40,6 +40,7 @@ jobs:
|
||||||
E2E_SLACK_TOKEN: ${{ secrets.SMOKE_TEST_SLACK_TOKEN }}
|
E2E_SLACK_TOKEN: ${{ secrets.SMOKE_TEST_SLACK_TOKEN }}
|
||||||
E2E_SLACK_CHANNEL: ${{ secrets.SMOKE_TEST_SLACK_CHANNEL }}
|
E2E_SLACK_CHANNEL: ${{ secrets.SMOKE_TEST_SLACK_CHANNEL }}
|
||||||
UPDATE_WC: 1
|
UPDATE_WC: 1
|
||||||
|
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
||||||
run: |
|
run: |
|
||||||
npx wc-e2e test:e2e ./tests/e2e/specs/smoke-tests/update-woocommerce.js
|
npx wc-e2e test:e2e ./tests/e2e/specs/smoke-tests/update-woocommerce.js
|
||||||
npx wc-e2e test:e2e
|
npx wc-e2e test:e2e
|
||||||
|
|
|
@ -41,6 +41,7 @@ jobs:
|
||||||
E2E_SLACK_CHANNEL: ${{ secrets.SMOKE_TEST_SLACK_CHANNEL }}
|
E2E_SLACK_CHANNEL: ${{ secrets.SMOKE_TEST_SLACK_CHANNEL }}
|
||||||
TEST_RELEASE: 1
|
TEST_RELEASE: 1
|
||||||
UPDATE_WC: 1
|
UPDATE_WC: 1
|
||||||
|
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
||||||
run: |
|
run: |
|
||||||
npx wc-e2e test:e2e ./tests/e2e/specs/smoke-tests/update-woocommerce.js
|
npx wc-e2e test:e2e ./tests/e2e/specs/smoke-tests/update-woocommerce.js
|
||||||
npx wc-e2e test:e2e
|
npx wc-e2e test:e2e
|
||||||
|
|
|
@ -5,7 +5,7 @@ const program = require( 'commander' );
|
||||||
const path = require( 'path' );
|
const path = require( 'path' );
|
||||||
const fs = require( 'fs' );
|
const fs = require( 'fs' );
|
||||||
const { getAppRoot } = require( '../utils' );
|
const { getAppRoot } = require( '../utils' );
|
||||||
const { WC_E2E_SCREENSHOTS, JEST_PUPPETEER_CONFIG } = process.env;
|
const { WC_E2E_SCREENSHOTS, JEST_PUPPETEER_CONFIG, DEFAULT_TIMEOUT_OVERRIDE } = process.env;
|
||||||
|
|
||||||
program
|
program
|
||||||
.usage( '<file ...> [options]' )
|
.usage( '<file ...> [options]' )
|
||||||
|
@ -43,6 +43,10 @@ let testEnvVars = {
|
||||||
jest_test_timeout: program.dev ? 120000 : 30000,
|
jest_test_timeout: program.dev ? 120000 : 30000,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if ( DEFAULT_TIMEOUT_OVERRIDE ) {
|
||||||
|
testEnvVars.jest_test_timeout = DEFAULT_TIMEOUT_OVERRIDE;
|
||||||
|
}
|
||||||
|
|
||||||
if ( ! JEST_PUPPETEER_CONFIG ) {
|
if ( ! JEST_PUPPETEER_CONFIG ) {
|
||||||
// Use local Puppeteer config if there is one.
|
// Use local Puppeteer config if there is one.
|
||||||
// Load test configuration file into an object.
|
// Load test configuration file into an object.
|
||||||
|
|
Loading…
Reference in New Issue