Merge pull request #27790 from woocommerce/fix/27787
Expose automattic/puppeteer-utils in e2e-environment
This commit is contained in:
commit
0a7c0dc7fc
|
@ -11,6 +11,10 @@ const {
|
||||||
verifyValueOfInputField
|
verifyValueOfInputField
|
||||||
} = require( '@woocommerce/e2e-utils' );
|
} = require( '@woocommerce/e2e-utils' );
|
||||||
|
|
||||||
|
const {
|
||||||
|
waitAndClick
|
||||||
|
} = require( '@woocommerce/e2e-environment' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* External dependencies
|
* External dependencies
|
||||||
*/
|
*/
|
||||||
|
@ -50,7 +54,7 @@ const runInitialStoreSettingsTest = () => {
|
||||||
await page.click('input[value="/%postname%/"]', {text: ' Post name'});
|
await page.click('input[value="/%postname%/"]', {text: ' Post name'});
|
||||||
|
|
||||||
// Select "Custom base" in product permalinks section
|
// Select "Custom base" in product permalinks section
|
||||||
await page.click('#woocommerce_custom_selection');
|
await waitAndClick( page, '#woocommerce_custom_selection' );
|
||||||
|
|
||||||
// Fill custom base slug to use
|
// Fill custom base slug to use
|
||||||
await expect(page).toFill('#woocommerce_permalink_structure', '/product/');
|
await expect(page).toFill('#woocommerce_permalink_structure', '/product/');
|
||||||
|
|
|
@ -14,6 +14,20 @@ const {
|
||||||
const { getAppRoot, getTestConfig } = require( './utils' );
|
const { getAppRoot, getTestConfig } = require( './utils' );
|
||||||
const webpackAlias = require( './webpack-alias' );
|
const webpackAlias = require( './webpack-alias' );
|
||||||
|
|
||||||
|
const {
|
||||||
|
clickAndWaitForNewPage,
|
||||||
|
getAccountCredentials,
|
||||||
|
isEventuallyPresent,
|
||||||
|
isEventuallyVisible,
|
||||||
|
logDebugLog,
|
||||||
|
logHTML,
|
||||||
|
waitAndClick,
|
||||||
|
waitAndType,
|
||||||
|
waitForSelector,
|
||||||
|
scrollIntoView,
|
||||||
|
Page
|
||||||
|
} = require( '@automattic/puppeteer-utils' );
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
babelConfig,
|
babelConfig,
|
||||||
esLintConfig,
|
esLintConfig,
|
||||||
|
@ -26,4 +40,15 @@ module.exports = {
|
||||||
getAppRoot,
|
getAppRoot,
|
||||||
getTestConfig,
|
getTestConfig,
|
||||||
webpackAlias,
|
webpackAlias,
|
||||||
|
clickAndWaitForNewPage,
|
||||||
|
getAccountCredentials,
|
||||||
|
isEventuallyPresent,
|
||||||
|
isEventuallyVisible,
|
||||||
|
logDebugLog,
|
||||||
|
logHTML,
|
||||||
|
waitAndClick,
|
||||||
|
waitAndType,
|
||||||
|
waitForSelector,
|
||||||
|
scrollIntoView,
|
||||||
|
Page,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue