Meaningful comment for skipping the e2e tests (https://github.com/woocommerce/woocommerce-blocks/pull/6353)
* Added meaningful comment for skipping the tests if it's a WooCommerce Core process environment. * Fixed the flag number for MiniCart
This commit is contained in:
parent
26fbb3f569
commit
51495ff32c
|
@ -26,6 +26,7 @@ const block = {
|
|||
|
||||
if ( process.env.WOOCOMMERCE_BLOCKS_PHASE < 2 ) {
|
||||
// Skips all the tests if it's a WooCommerce Core process environment.
|
||||
// eslint-disable-next-line jest/no-focused-tests
|
||||
test.only( 'Skipping Cart & Checkout tests', () => {} );
|
||||
}
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
import { shopper, SIMPLE_VIRTUAL_PRODUCT_NAME } from '../../../../utils';
|
||||
|
||||
if ( process.env.WOOCOMMERCE_BLOCKS_PHASE < 2 ) {
|
||||
// Skips all the tests if it's a WooCommerce Core process environment.
|
||||
// eslint-disable-next-line jest/no-focused-tests
|
||||
test.only( `Skipping Cart & Checkout tests`, () => {} );
|
||||
}
|
||||
|
|
|
@ -31,6 +31,7 @@ import {
|
|||
import { createCoupon } from '../../../utils';
|
||||
|
||||
if ( process.env.WOOCOMMERCE_BLOCKS_PHASE < 2 ) {
|
||||
// Skips all the tests if it's a WooCommerce Core process environment.
|
||||
// eslint-disable-next-line jest/no-focused-tests
|
||||
test.only( 'Skipping Cart & Checkout tests', () => {} );
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ const productWooSingle1 = Products().find(
|
|||
);
|
||||
|
||||
if ( process.env.WOOCOMMERCE_BLOCKS_PHASE < 2 ) {
|
||||
// Skips all the tests if it's a WooCommerce Core process environment.
|
||||
// eslint-disable-next-line jest/no-focused-tests
|
||||
test.only( `Skipping Cart & Checkout tests`, () => {} );
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
import { merchant, shopper } from '../../../../utils';
|
||||
|
||||
if ( process.env.WOOCOMMERCE_BLOCKS_PHASE < 2 ) {
|
||||
// Skips all the tests if it's a WooCommerce Core process environment.
|
||||
// eslint-disable-next-line jest/no-focused-tests
|
||||
test.only( 'Skipping Cart & Checkout tests', () => {} );
|
||||
}
|
||||
|
|
|
@ -54,7 +54,8 @@ const WooCommerce = new WooCommerceRestApi( {
|
|||
},
|
||||
} );
|
||||
|
||||
if ( process.env.WOOCOMMERCE_BLOCKS_PHASE < 3 ) {
|
||||
if ( process.env.WOOCOMMERCE_BLOCKS_PHASE < 2 ) {
|
||||
// Skips all the tests if it's a WooCommerce Core process environment.
|
||||
// eslint-disable-next-line jest/no-focused-tests
|
||||
test.only( `Skipping ${ block.name } tests`, () => {} );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue