Remove code that disabled attribute lookup in e2e tests (https://github.com/woocommerce/woocommerce-blocks/pull/8849)

This commit is contained in:
Albert Juhé Lluveras 2023-03-28 12:48:34 +02:00 committed by GitHub
parent 2e5fcbd630
commit 38116064cb
2 changed files with 0 additions and 10 deletions

View File

@ -20,7 +20,6 @@ import {
createBlockPages,
enablePaymentGateways,
createProductAttributes,
disableAttributeLookup,
} from '../fixtures/fixture-loaders';
import { PERFORMANCE_REPORT_FILENAME } from '../../utils/constants';
@ -62,9 +61,6 @@ module.exports = async ( globalConfig ) => {
await createReviews( productId );
} );
// This is necessary for avoid this bug https://github.com/woocommerce/woocommerce/issues/32065
await disableAttributeLookup();
// Wipe the performance e2e file at the start of every run
if ( existsSync( PERFORMANCE_REPORT_FILENAME ) ) {
truncateSync( PERFORMANCE_REPORT_FILENAME );

View File

@ -481,11 +481,6 @@ const deleteProductAttributes = ( ids ) => {
return WooCommerce.post( 'products/attributes/batch', { delete: ids } );
};
const disableAttributeLookup = () =>
WooCommerce.put( 'settings/products/woocommerce_attribute_lookup_enabled', {
value: 'no',
} );
module.exports = {
createProductAttributes,
deleteProductAttributes,
@ -507,5 +502,4 @@ module.exports = {
deleteShippingZones,
createBlockPages,
deleteBlockPages,
disableAttributeLookup,
};