Added setupJestRetries to beforeAll block
This commit is contained in:
parent
a6f51a9a39
commit
6086223708
|
@ -9,6 +9,7 @@ import {
|
|||
setBrowserViewport,
|
||||
} from '@wordpress/e2e-test-utils';
|
||||
import { consoleShouldSuppress, addConsoleSuppression } from '../../utils';
|
||||
import { setupJestRetries } from '../../config/jest-object.config';
|
||||
|
||||
/**
|
||||
* Array of page event tuples of [ eventName, handler ].
|
||||
|
@ -175,6 +176,7 @@ beforeAll( async () => {
|
|||
capturePageEventsForTearDown();
|
||||
enablePageDialogAccept();
|
||||
observeConsoleLogging();
|
||||
setupJestRetries( 2 );
|
||||
} );
|
||||
|
||||
afterEach( async () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ import {
|
|||
|
||||
const config = require( 'config' );
|
||||
const { HTTPClientFactory } = require( '@woocommerce/api' );
|
||||
const { addConsoleSuppression, updateReadyPageStatus, setupJestObject } = require( '@woocommerce/e2e-environment' );
|
||||
const { addConsoleSuppression, updateReadyPageStatus, setupJestRetries } = require( '@woocommerce/e2e-environment' );
|
||||
const { DEFAULT_TIMEOUT_OVERRIDE } = process.env;
|
||||
|
||||
// @todo: remove this once https://github.com/woocommerce/woocommerce-admin/issues/6992 has been addressed
|
||||
|
@ -40,7 +40,7 @@ async function trashExistingPosts() {
|
|||
// each other's side-effects.
|
||||
beforeAll(async () => {
|
||||
|
||||
setupJestObject();
|
||||
setupJestRetries( 2 );
|
||||
|
||||
if ( DEFAULT_TIMEOUT_OVERRIDE ) {
|
||||
page.setDefaultNavigationTimeout( DEFAULT_TIMEOUT_OVERRIDE );
|
||||
|
|
Loading…
Reference in New Issue