Merge pull request #27790 from woocommerce/fix/27787

Expose automattic/puppeteer-utils in e2e-environment
This commit is contained in:
Ron Rennick 2020-10-15 09:52:52 -03:00 committed by GitHub
commit 0a7c0dc7fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 1 deletions

View File

@ -11,6 +11,10 @@ const {
verifyValueOfInputField
} = require( '@woocommerce/e2e-utils' );
const {
waitAndClick
} = require( '@woocommerce/e2e-environment' );
/**
* External dependencies
*/
@ -50,7 +54,7 @@ const runInitialStoreSettingsTest = () => {
await page.click('input[value="/%postname%/"]', {text: ' Post name'});
// 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
await expect(page).toFill('#woocommerce_permalink_structure', '/product/');

View File

@ -14,6 +14,20 @@ const {
const { getAppRoot, getTestConfig } = require( './utils' );
const webpackAlias = require( './webpack-alias' );
const {
clickAndWaitForNewPage,
getAccountCredentials,
isEventuallyPresent,
isEventuallyVisible,
logDebugLog,
logHTML,
waitAndClick,
waitAndType,
waitForSelector,
scrollIntoView,
Page
} = require( '@automattic/puppeteer-utils' );
module.exports = {
babelConfig,
esLintConfig,
@ -26,4 +40,15 @@ module.exports = {
getAppRoot,
getTestConfig,
webpackAlias,
clickAndWaitForNewPage,
getAccountCredentials,
isEventuallyPresent,
isEventuallyVisible,
logDebugLog,
logHTML,
waitAndClick,
waitAndType,
waitForSelector,
scrollIntoView,
Page,
};