2020-09-15 17:08:19 +00:00
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2020-04-02 13:41:06 +00:00
|
|
|
const babelConfig = require( './babel.config' );
|
|
|
|
const esLintConfig = require( './.eslintrc.js' );
|
2020-07-29 18:13:22 +00:00
|
|
|
const {
|
|
|
|
jestConfig,
|
|
|
|
jestPuppeteerConfig,
|
2020-09-15 17:08:19 +00:00
|
|
|
useE2EBabelConfig,
|
|
|
|
useE2EEsLintConfig,
|
2020-07-29 18:13:22 +00:00
|
|
|
useE2EJestConfig,
|
|
|
|
useE2EJestPuppeteerConfig,
|
|
|
|
} = require( './config' );
|
2020-07-29 23:03:29 +00:00
|
|
|
const { getAppRoot, getTestConfig } = require( './utils' );
|
2020-04-02 13:41:06 +00:00
|
|
|
const webpackAlias = require( './webpack-alias' );
|
|
|
|
|
2020-09-25 19:51:34 +00:00
|
|
|
const {
|
|
|
|
clickAndWaitForNewPage,
|
|
|
|
getAccountCredentials,
|
|
|
|
isEventuallyPresent,
|
|
|
|
isEventuallyVisible,
|
|
|
|
logDebugLog,
|
|
|
|
logHTML,
|
|
|
|
waitAndClick,
|
|
|
|
waitAndType,
|
|
|
|
waitForSelector,
|
|
|
|
scrollIntoView,
|
|
|
|
Page
|
|
|
|
} = require( '@automattic/puppeteer-utils' );
|
|
|
|
|
2020-04-02 13:41:06 +00:00
|
|
|
module.exports = {
|
2020-07-29 18:13:22 +00:00
|
|
|
babelConfig,
|
|
|
|
esLintConfig,
|
|
|
|
jestConfig,
|
|
|
|
jestPuppeteerConfig,
|
2020-09-15 17:08:19 +00:00
|
|
|
useE2EBabelConfig,
|
|
|
|
useE2EEsLintConfig,
|
2020-07-29 18:13:22 +00:00
|
|
|
useE2EJestConfig,
|
|
|
|
useE2EJestPuppeteerConfig,
|
2020-07-29 23:03:29 +00:00
|
|
|
getAppRoot,
|
|
|
|
getTestConfig,
|
2020-07-29 18:13:22 +00:00
|
|
|
webpackAlias,
|
2020-09-25 19:51:34 +00:00
|
|
|
clickAndWaitForNewPage,
|
|
|
|
getAccountCredentials,
|
|
|
|
isEventuallyPresent,
|
|
|
|
isEventuallyVisible,
|
|
|
|
logDebugLog,
|
|
|
|
logHTML,
|
|
|
|
waitAndClick,
|
|
|
|
waitAndType,
|
|
|
|
waitForSelector,
|
|
|
|
scrollIntoView,
|
|
|
|
Page,
|
2020-04-02 13:41:06 +00:00
|
|
|
};
|