Tam Mullen
9ad9ff2df8
Fixing import path
2020-08-11 12:26:53 +01:00
Tam Mullen
c8365213c3
Fixing import path.
2020-08-11 00:34:57 +01:00
Tam Mullen
ed525087ac
Addressing comments.
2020-08-10 21:27:20 +01:00
Tam Mullen
da1916c663
Updating product test dependencies
2020-08-10 21:26:10 +01:00
Tam Mullen
43c55e2c6a
Converting e2e-utils to package.
2020-08-10 21:26:10 +01:00
dependabot[bot]
089df498d3
Bump lodash from 4.17.15 to 4.17.19 in /tests/e2e/factories
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-08-05 23:04:18 +00:00
Christopher Allford
678705cdd4
Merge branch 'master' into package/e2e-factories/product
2020-08-05 14:00:05 -07:00
Tam Mullen
5a410c02a6
Fix e2e OBW test to not untick physical products in product type list
2020-08-05 12:49:42 +01:00
Christopher Allford
1868cd8aaa
Adjusting the shipping task order in the E2E test for setup tasks
2020-07-27 15:18:27 -07:00
Christopher Allford
edf1932ee9
Adjusted the OBW test for changes in WC-Admin 1.4.0
2020-07-27 14:38:43 -07:00
Christopher Allford
ddc1f87f8d
Update README.md
...
Changed `npm install` suggestion to better suggest saving the dependencies as devDependencies
2020-07-27 13:30:39 -07:00
Nestor Soriano
cc118c0c10
Fixed the number of product types in the onboarding E2E test
2020-07-27 16:49:32 +02:00
Christopher Allford
4123d048e0
Fixed the number of industries in the onboarding E2E test
2020-07-27 07:08:54 -07:00
Ron Rennick
96d73d2300
Merge pull request #27090 from woocommerce/update/wp-jest-preset-version
...
Update E2E env jest preset default version.
2020-07-24 14:39:55 -03:00
Jeff Stieler
76e42fec98
Update E2E env jest preset default version.
...
6.x.x will update the weak ref detection dependencies.
2020-07-21 13:51:16 -04:00
Julia Amosova
10bfb679eb
Scroll home screen tasks list into view for the click to work
2020-07-17 12:44:46 -04:00
Christopher Allford
16c5ac401a
Adjusted the publish configuration to respect the @woocommerce scope
2020-07-13 10:05:17 -07:00
Christopher Allford
e4d90f10c3
Corrected the tabs in the README.me
2020-07-02 15:28:19 -07:00
Christopher Allford
b5e1e1cc8a
Added a readme documenting the usage of the model factory package
2020-07-02 14:39:18 -07:00
Christopher Allford
822179e4ac
Renamed the e2e-factories package to better reflect its usage-agnostic design
2020-07-02 14:16:01 -07:00
Christopher Allford
5652025d28
Removed unused adapter types
2020-07-02 13:56:48 -07:00
Christopher Allford
d8beef56b5
Added support for faker to populate models with dummy data
2020-07-02 13:33:30 -07:00
Christopher Allford
4373c7be1b
Moved the factory package init into a common utility
2020-07-02 13:13:23 -07:00
Christopher Allford
9b18a95f93
Adjusted the build:packages command to allow each package to build itself
2020-07-02 11:59:41 -07:00
Christopher Allford
f1a616e026
Made the model properties compliant with code style
2020-07-02 10:56:21 -07:00
Christopher Allford
3e69dd3a64
Replaced the `createSimpleProduct` helper with a usage of the factory
2020-07-02 10:50:56 -07:00
Christopher Allford
f11a47693b
Refactored interceptors to support different authentication styles
2020-07-02 10:03:35 -07:00
Christopher Allford
85833f137c
Fixed a bug that would cause APIService failures to throw unhandled exceptions when creating
2020-07-01 22:08:18 -07:00
Christopher Allford
c3de8f0d12
Adjusted the structure of the factory package for easier consumption
2020-07-01 22:07:27 -07:00
Christopher Allford
0785e6caa7
Merge branch 'master' into package/e2e-factories/product
2020-07-01 14:11:25 -07:00
Christopher Allford
68daac3a94
Added a utility for initializing all of the APIAdapters with a service
2020-07-01 13:58:12 -07:00
Christopher Allford
b4c1f3ca8f
Fixed the POST, PUT, and PATCH Axios service actions
2020-07-01 12:31:20 -07:00
Christopher Allford
bc3e1b4555
Replaced the exported variables with functions to populate the registry
2020-07-01 12:08:08 -07:00
Christopher Allford
e6e764320b
Added a registry to hold all of the factories and adapters
2020-07-01 11:07:57 -07:00
Christopher Allford
627bd5a99a
Simplified the package directory structure
2020-06-30 21:37:17 -07:00
Christopher Allford
c23f52aedf
Created a base ModelFactory for all factories to extend
2020-06-30 19:00:42 -07:00
Christopher Allford
3e2e03d48a
Fixed the URL being passed to the OAuth package
2020-06-30 16:01:47 -07:00
Christopher Allford
603a5e7812
Changed the structure of error responses
...
In practice having the response class contained within the error feels a little backwards. We can instead have a structured APIError model that is contained in the APIResponse and have a consistent response format to consume.
2020-06-30 16:01:12 -07:00
Christopher Allford
7500cc004d
Added a skeleton product factory for testing
2020-06-30 13:05:25 -07:00
Christopher Allford
4aa9360ba7
Added an adapter to support creating models via the API
2020-06-30 12:50:15 -07:00
Christopher Allford
ddbbbbc078
Adjusted the TypeScript configuration to use the --build flag
2020-06-24 16:08:28 -07:00
Christopher Allford
6ad8b57f2e
Added formatting requirements to the code style
2020-06-24 14:47:46 -07:00
Christopher Allford
4e02ce7afd
Moved the Axios response/error transformations into an interceptor
2020-06-24 11:35:04 -07:00
Christopher Allford
9908a84d0e
Added a service for interacting with the WordPress API
...
We've hid the use of Axios behind a service so that we're able to easily mock it out in factories as well as handle the creation and configuration of the client. This will make it easier on consumers in that they won't have to worry about things like authentication when using the API.
2020-06-23 13:15:26 -07:00
Christopher Allford
031bb6593f
Fixed the usage of baseURL with the APIAuthInterceptor
2020-06-23 11:53:00 -07:00
Christopher Allford
323d06744c
Adjusted the APIAuthInterceptor to be more explicitly Axios-specific
2020-06-22 12:10:45 -07:00
Ron Rennick
ee151bbd95
Merge branch 'master' into add/npm-publish
2020-06-22 13:46:54 -03:00
Christopher Allford
dd74c3db45
Removed build artifact
2020-06-20 18:46:59 -07:00
Christopher Allford
2a3b1b3780
Adjusted the package to better support NPM distribution
2020-06-20 18:25:19 -07:00
Christopher Allford
9f1decd4c6
Added an interceptor to handle WooCommerce API authentication
2020-06-19 12:08:48 -07:00