simplify e2e-environment exports
This commit is contained in:
parent
e91a09f302
commit
9d47a1c072
|
@ -3,50 +3,17 @@
|
||||||
*/
|
*/
|
||||||
const babelConfig = require( './babel.config' );
|
const babelConfig = require( './babel.config' );
|
||||||
const esLintConfig = require( './.eslintrc.js' );
|
const esLintConfig = require( './.eslintrc.js' );
|
||||||
const {
|
const allE2EConfig = require( './config' );
|
||||||
jestConfig,
|
const allE2EUtils = require( './utils' );
|
||||||
jestPuppeteerConfig,
|
/**
|
||||||
useE2EBabelConfig,
|
* External dependencies
|
||||||
useE2EEsLintConfig,
|
*/
|
||||||
useE2EJestConfig,
|
const allPuppeteerUtils = require( '@automattic/puppeteer-utils' );
|
||||||
useE2EJestPuppeteerConfig,
|
|
||||||
} = require( './config' );
|
|
||||||
const { getAppRoot, getTestConfig } = require( './utils' );
|
|
||||||
|
|
||||||
const {
|
|
||||||
clickAndWaitForNewPage,
|
|
||||||
getAccountCredentials,
|
|
||||||
isEventuallyPresent,
|
|
||||||
isEventuallyVisible,
|
|
||||||
logDebugLog,
|
|
||||||
logHTML,
|
|
||||||
waitAndClick,
|
|
||||||
waitAndType,
|
|
||||||
waitForSelector,
|
|
||||||
scrollIntoView,
|
|
||||||
Page
|
|
||||||
} = require( '@automattic/puppeteer-utils' );
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
babelConfig,
|
babelConfig,
|
||||||
esLintConfig,
|
esLintConfig,
|
||||||
jestConfig,
|
...allE2EConfig,
|
||||||
jestPuppeteerConfig,
|
...allE2EUtils,
|
||||||
useE2EBabelConfig,
|
...allPuppeteerUtils,
|
||||||
useE2EEsLintConfig,
|
|
||||||
useE2EJestConfig,
|
|
||||||
useE2EJestPuppeteerConfig,
|
|
||||||
getAppRoot,
|
|
||||||
getTestConfig,
|
|
||||||
clickAndWaitForNewPage,
|
|
||||||
getAccountCredentials,
|
|
||||||
isEventuallyPresent,
|
|
||||||
isEventuallyVisible,
|
|
||||||
logDebugLog,
|
|
||||||
logHTML,
|
|
||||||
waitAndClick,
|
|
||||||
waitAndType,
|
|
||||||
waitForSelector,
|
|
||||||
scrollIntoView,
|
|
||||||
Page,
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue