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