Merge pull request #27645 from woocommerce/update/e2e-utils-for-package

prep e2e-utils package for publish
This commit is contained in:
Ron Rennick 2020-09-14 14:40:19 -03:00 committed by GitHub
commit 0bf505ab12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 19 deletions

View File

@ -1,16 +1,26 @@
{
"name": "@woocommerce/e2e-utils",
"version": "0.1.0",
"description": "End-To-End (E2E) test utils for WooCommerce",
"homepage": "https://github.com/woocommerce/woocommerce/tree/master/tests/e2e-utils/README.md",
"repository": {
"type": "git",
"url": "https://github.com/woocommerce/woocommerce.git"
},
"license": "GPL-3.0+",
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
"@wordpress/e2e-test-utils": "4.6.0"
}
"name": "@woocommerce/e2e-utils",
"version": "0.1.0",
"description": "End-To-End (E2E) test utils for WooCommerce",
"homepage": "https://github.com/woocommerce/woocommerce/tree/master/tests/e2e-utils/README.md",
"repository": {
"type": "git",
"url": "https://github.com/woocommerce/woocommerce.git"
},
"license": "GPL-3.0+",
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
"@wordpress/e2e-test-utils": "4.6.0",
"@woocommerce/model-factories": "file:../factories"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"clean": "rm -rf ./build ./build-module",
"compile": "node ./../bin/build.js",
"build": "npm run clean && npm run compile",
"prepare": "npm run build"
}
}

View File

@ -6,7 +6,7 @@
* Internal dependencies
*/
import { StoreOwnerFlow } from './flows';
import modelRegistry from '../../utils/factories';
import modelRegistry from './factories';
import { SimpleProduct } from '@woocommerce/model-factories';
import { clickTab, uiUnblocked, verifyCheckboxIsUnset } from './page-utils';

View File

@ -2,7 +2,7 @@ import {
AdapterTypes,
initializeUsingBasicAuth,
ModelRegistry,
registerSimpleProduct
registerSimpleProduct,
} from '@woocommerce/model-factories';
const config = require( 'config' );

View File

@ -1,4 +1,4 @@
import { CustomerFlow, StoreOwnerFlow } from './src/flows';
import { CustomerFlow, StoreOwnerFlow } from './flows';
import {
completeOnboardingWizard,
@ -6,7 +6,7 @@ import {
createSimpleProduct,
createVariableProduct,
verifyAndPublish,
} from './src/components';
} from './components';
import {
clearAndFillInput,
@ -20,7 +20,7 @@ import {
verifyCheckboxIsSet,
verifyCheckboxIsUnset,
verifyValueOfInputField,
} from './src/page-utils';
} from './page-utils';
module.exports = {
CustomerFlow,