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
Christopher Allford
5e15271f95
Excluded test files from the TypeScript build
2020-06-18 09:43:11 -07:00
Christopher Allford
1418b68910
Initial configuration for e2e-factories package
2020-06-17 15:51:28 -07:00
Julia Amosova
281057eee8
Adjust various conditions of the OBW e2e test to make it pass
2020-06-17 17:20:12 -04:00
Ron Rennick
239476ddc5
create ready page after initialization script
2020-06-16 12:29:43 -03:00
Christopher Allford
2953df2c5d
Merge pull request #26529 from woocommerce/fix/e2e-403-errors
...
use nonced logout link for store owner logout
2020-05-21 10:44:10 -07:00
Ron Rennick
617a523057
fix merge conflicts
2020-05-18 12:34:03 -03:00
Ron Rennick
07c6075dde
use nonced logout link for store owner logout
2020-05-15 16:58:50 -03:00
Boro Sitnikovski
f34e73d402
Add a comment on @babel/preset-env
2020-05-15 11:28:21 +02:00
Boro Sitnikovski
ad3b9fc861
Fix version mismatch error
2020-05-15 11:21:59 +02:00
Boro Sitnikovski
b01f3aae93
Add some additional information and be specific about babel file
2020-05-15 11:21:34 +02:00
Ron Rennick
3053942cf1
chore(release): publish
...
- @woocommerce/e2e-environment@0.1.5
2020-05-13 15:18:00 -03:00
Ron Rennick
a433304757
additional changes
...
- Update @wordpress/e2e-test-utils to 4.6.0
- ignore all node_modules folders in the install
- remove missed package script
- bump component version
2020-05-13 15:14:18 -03:00
Ron Rennick
df6e9e7894
bump e2e-environment to 0.1.4
2020-05-12 13:35:42 -03:00
Job
8fb72c8a1d
Decapitalise "Better" in "Build a Better WooCommerce"
...
All titles and questions in the new onboarding wizards only capitalise names and the first letter of the sentence. This seemed a tiny bit off. (Literally tiny.)
Changed "Build a Better WooCommerce" to "Build a better WooCommerce"
2020-05-12 07:49:24 -07:00
Ron Rennick
02b649d17c
use version of docker supported by trusty and newer
2020-05-11 22:58:45 -03:00
Ron Rennick
ed135109e0
add e2e component build
...
- add build script
- update component for path changes
- bump component version
- move ready post creation to component
- update component readme
2020-05-11 15:54:12 -03:00
Ron Rennick
dea4144be2
docker compose command line arg parsing for local and module
2020-05-08 16:26:30 -03:00
Ron Rennick
72ff998033
remove npm e2e-CI script command
2020-05-08 14:29:02 -03:00
Ron Rennick
209b2edea9
chore(release): publish
...
- @woocommerce/e2e-environment@0.1.2
2020-05-08 14:09:39 -03:00
Ron Rennick
e1c24c9f3e
chore(release): publish
...
- @woocommerce/e2e-environment@0.1.1
2020-05-08 14:00:46 -03:00
Ron Rennick
4f908c452d
update tests and e2e readme instructions, file locations
2020-05-08 11:24:43 -03:00
Ron Rennick
0e2e91371a
update for review items
2020-05-06 13:29:13 -03:00
Ron Rennick
97a6110ae4
combine puppeteer config files
2020-05-04 16:16:21 -03:00
Ron Rennick
71fb49dc06
restore latest default.json from master
2020-05-01 13:28:59 -03:00
Ron Rennick
78e777f25f
restore travis e2e setup script
2020-05-01 10:18:21 -03:00
Ron Rennick
6726f6423d
merge travis config files
2020-04-30 19:58:37 -03:00
Ron Rennick
7fbbbf6608
update travis config
2020-04-30 16:43:36 -03:00
Ron Rennick
0de3718770
change component name to e2e-environment
2020-04-30 14:01:42 -03:00
Ron Rennick
b4fcfd93c2
rename test:e2e.json, remove redundant files
2020-04-29 11:22:11 -03:00
Ron Rennick
d41fbc7ff2
update folder structure, use WordPress 5.4
2020-04-28 19:09:39 -03:00