Required config from @woocommerce/e2e-environment
This commit is contained in:
parent
7284163ce5
commit
7ff7b14cb4
|
@ -19,7 +19,7 @@ const {
|
|||
beforeAll,
|
||||
} = require( '@jest/globals' );
|
||||
|
||||
const config = require('config');
|
||||
const { config } = require( '@woocommerce/e2e-environment' );
|
||||
|
||||
const runCheckoutLoginAccountTest = () => {
|
||||
describe('Shopper Checkout Login Account', () => {
|
||||
|
|
|
@ -6,7 +6,7 @@ const {
|
|||
shopper,
|
||||
createVariableProduct,
|
||||
} = require( '@woocommerce/e2e-utils' );
|
||||
const config = require('config');
|
||||
const { config } = require( '@woocommerce/e2e-environment' );
|
||||
|
||||
let variablePostIdValue;
|
||||
|
||||
|
@ -100,7 +100,7 @@ const runVariableProductUpdateTest = () => {
|
|||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
};
|
||||
|
||||
module.exports = runVariableProductUpdateTest;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { HTTPClientFactory } from '@woocommerce/api';
|
||||
const config = require( 'config' );
|
||||
const { config } = require( '@woocommerce/e2e-environment' );
|
||||
import { simpleProductFactory } from './factories/simple-product';
|
||||
import { variableProductFactory } from './factories/variable-product';
|
||||
import { variationFactory } from './factories/variation';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* External dependencies
|
||||
*/
|
||||
const config = require( 'config' );
|
||||
const { config } = require( '@woocommerce/e2e-environment' );
|
||||
const baseUrl = config.get( 'url' );
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* External dependencies
|
||||
*/
|
||||
const config = require( 'config' );
|
||||
const { config } = require( '@woocommerce/e2e-environment' );
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
|
@ -440,10 +440,9 @@ const merchant = {
|
|||
*/
|
||||
collapseAdminMenu: async ( collapse = true ) => {
|
||||
const collapseButton = await page.$( '.folded #collapse-button' );
|
||||
if ( ( ! collapseButton ) == collapse ) {
|
||||
if ( ( ! collapse ) == collapseButton ) {
|
||||
await collapseButton.click();
|
||||
}
|
||||
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* External dependencies
|
||||
*/
|
||||
const { pressKeyWithModifier } = require( '@wordpress/e2e-test-utils' );
|
||||
const config = require( 'config' );
|
||||
const { config } = require( '@woocommerce/e2e-environment' );
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
|
|
Loading…
Reference in New Issue