Tam Mullen
a0233fad93
Merge pull request #27978 from woocommerce/docs/e2e-environment-0.1.6
...
update e2e-environment readme
2020-10-28 12:51:13 +00:00
Tam Mullen
8e5bd336de
Merge pull request #27994 from woocommerce/fix/27979
...
expand e2e-utils readme, simplify exports
2020-10-28 12:50:57 +00:00
Ron Rennick
1794026773
fix flaky e2e coupon test
2020-10-27 16:44:42 -03:00
Ron Rennick
9d47a1c072
simplify e2e-environment exports
2020-10-21 16:17:10 -03:00
Ron Rennick
e91a09f302
remove remaining webalias fragments
2020-10-21 15:47:09 -03:00
Ron Rennick
5e2e01e7b8
add Nightly message to log, bump Travis
2020-10-21 13:25:23 -03:00
Ron Rennick
7ebfdbeb0e
add support for custom container initialization script
2020-10-21 10:53:48 -03:00
Ron Rennick
7a5cad3f99
variation test works to last uncommented step
2020-10-20 19:43:07 -03:00
Ron Rennick
bf410cc44e
use checkbox object for checking/unchecking
2020-10-20 17:21:34 -03:00
Ron Rennick
894dceee95
Fixes needed for variable product E2E test
...
- Jest/Puppeteer sometimes will not find an element on page load when that element is outside the initial viewport
- There were duplicate .variation_tab classes which confused Jest/Puppeteer
- Add function for opening and verifying new product page
- Update test sequence for changes in flow in markup and Jest/Puppeteer
2020-10-20 11:25:36 -03:00
Ron Rennick
503e898307
use direct exports
2020-10-19 11:32:28 -03:00
Ron Rennick
3b1481bb01
expand e2e-utils readme, simplify exports
2020-10-16 16:25:23 -03:00
Julia Amosova
ff67a7c1ce
Add note about test locations in WC Core and other projects.
2020-10-16 11:27:00 -04:00
Julia Amosova
bd5b65426f
Update README with more details on how to write e2e tests.
2020-10-16 11:20:33 -04:00
Julia Amosova
8c094daceb
Add guide for writing e2e tests in README
2020-10-16 11:20:24 -04:00
Rodrigo Primo
7599517e91
Merge pull request #27965 from woocommerce/fix/27874
...
switch to api package, bump utils package version
2020-10-15 15:05:43 -03:00
Ron Rennick
dd6d460fec
update e2e-environment readme
2020-10-15 14:53:21 -03:00
Ron Rennick
c3f934ad21
add e2e-environment package changelog
2020-10-15 14:14:22 -03:00
Ron Rennick
5815e5cf48
Merge pull request #27914 from woocommerce/fix/e2e-container-check
...
Only attempt to run E2E tests if testing host is ready
2020-10-15 13:44:55 -03:00
Ron Rennick
f0e6e1761c
Merge pull request #27913 from woocommerce/fix/27820
...
add test:e2e-debug command
2020-10-15 13:44:32 -03:00
Ron Rennick
0a7c0dc7fc
Merge pull request #27790 from woocommerce/fix/27787
...
Expose automattic/puppeteer-utils in e2e-environment
2020-10-15 09:52:52 -03:00
Ron Rennick
f945a0e16c
switch to api package, bump utils package version
2020-10-14 15:13:08 -03:00
Ron Rennick
514e6cc308
document disabling puppeteer download
2020-10-14 13:59:37 -03:00
Julia Amosova
03078c5a9d
Implement `waitAndClick` in the setup e2e test.
2020-10-13 16:25:28 -04:00
Ron Rennick
13bcd43bfe
expose automattic/puppeteer-utils in e2e-environment
2020-10-13 16:16:32 -04:00
Ron Rennick
24713a45c3
restore shipping setup test
2020-10-13 16:15:07 -03:00
Rodrigo Primo
5f5e739d7a
Update e2e test documentation to fix invalid example
...
This commit just updates the e2e test documentation to use a test file that exists in the section on how to run individual tests
2020-10-10 10:33:41 -03:00
Ron Rennick
903b86677c
add readme to core tests package
2020-10-09 10:31:45 -03:00
Ron Rennick
62acca06e1
don't run tests if testing host not ready
2020-10-09 05:14:57 -03:00
Ron Rennick
7f57906959
add test:e2e-debug command
2020-10-09 05:00:03 -03:00
Christopher Allford
f9ef91adc1
Merge pull request #27836 from woocommerce/packages/api/add/repository-listing
...
@woocommerce/api: Added list() repository operation and classes for managing store settings
2020-10-08 13:20:12 -07:00
Christopher Allford
1d0cbc8187
Merge branch 'master' into packages/api/add/repository-listing
2020-10-08 11:48:22 -07:00
Ron Rennick
31001036c9
Merge branch 'master' into fix/25962
2020-10-08 15:30:25 -03:00
Ron Rennick
3a980a1241
merge current master
2020-10-07 03:17:38 -03:00
Ron Rennick
84fdfb6769
merge master
2020-10-07 03:05:04 -03:00
Julia Amosova
aac4db94b2
Merge pull request #27679 from woocommerce/packages/e2e/config-functions
...
add eslint & babel config functions to e2e-environment
2020-10-06 14:15:56 -04:00
Ron Rennick
df60bfb054
Merge pull request #27276 from woocommerce/fix/docker-ssh
...
Fix e2e docker:ssh command to work in any repo
2020-10-05 09:51:56 -03:00
Ron Rennick
610e787a86
package lock maintenance
2020-10-05 09:31:48 -03:00
Ron Rennick
5139c73029
allow running named test files that don't match test spec pattern
2020-10-05 09:16:27 -03:00
Christopher Allford
3558a9a025
Fixed a bug caused by differences in the URL when creating signatures on the client and server
2020-10-02 16:34:07 -07:00
Christopher Allford
6b5ff6d494
Fixed a bug that would cause Axios errors to be consumed by interceptors
2020-10-02 15:37:09 -07:00
Christopher Allford
b74adf215a
Adjusted the error mechanism to better follow the standard practice of rejecting HTTP errors
2020-10-02 14:10:24 -07:00
Christopher Allford
54b876fc75
Adjusted the typing of the ModelRepository and related interfaces to better distinguish between parent & child models
2020-10-01 18:06:34 -07:00
Christopher Allford
8f5ff436a2
Added support for flat parents to simplify calls with them
2020-10-01 17:48:37 -07:00
Christopher Allford
a01da2da93
Updated the lock files
2020-10-01 16:04:03 -07:00
Christopher Allford
e6efbdde34
Merge branch 'master' into packages/api/add/repository-listing
2020-10-01 15:58:48 -07:00
Christopher Allford
8ee89eb85d
Documentation fixes
2020-10-01 15:53:30 -07:00
Christopher Allford
cfa20570c1
Added appropriate HTTP errors to REST repository methods
2020-10-01 15:37:58 -07:00
Christopher Allford
f8574bed56
Added a utility service for updating settings
2020-10-01 15:23:46 -07:00
Christopher Allford
f0ad6e4fc2
Added aliases to make repository types easier to read
2020-10-01 15:00:27 -07:00
Christopher Allford
787040db4c
Adjusted the ModelRepository to make repository methods more type-safe
2020-10-01 14:31:55 -07:00
Christopher Allford
f2dda16c40
Updated lock files
2020-10-01 14:28:14 -07:00
Ron Rennick
c17b6b5ad0
Update expected industry count
2020-10-01 14:46:04 -03:00
Ron Rennick
4af90518da
lock file maintenance
2020-10-01 14:21:40 -03:00
Ron Rennick
8910357437
add missing test stubs
2020-10-01 10:25:22 -03:00
Christopher Allford
f6cbab8d07
Added missing static helpers for fetching repositories
2020-09-30 13:16:46 -07:00
Christopher Allford
fccf1fb66e
Added settings and group repositories with some basic functionality
2020-09-30 13:11:31 -07:00
Ron Rennick
be15429c30
restore ability to run individual tests
2020-09-30 17:05:02 -03:00
Ron Rennick
72219b2323
move merchant tests to package
2020-09-30 14:41:31 -03:00
Christopher Allford
4c2637c479
Added a `list` operation to the repository
2020-09-30 07:59:10 -07:00
Christopher Allford
f571324a09
Added better type-safety when distinguishing between resources that are children and those that are not
2020-09-29 18:40:50 -07:00
Ron Rennick
76f591251a
move front end tests to package
2020-09-29 17:00:34 -03:00
Ron Rennick
27e79f465f
split activation, onboarding, setup tests into separate files
2020-09-29 16:16:43 -03:00
Christopher Allford
8c5548d06e
Added @template JSDoc tag to API package for better IDE support
2020-09-29 12:00:09 -07:00
Ron Rennick
1abbe3f273
initial core test package files, move setup tests to package
2020-09-29 15:22:20 -03:00
Ron Rennick
fd60f7052a
Merge branch 'master' into fix/e2e-url-no-port
2020-09-28 16:15:22 -03:00
Christopher Allford
ef93f22321
Moved the product model for consistency with other model types
2020-09-25 14:08:19 -07:00
Christopher Allford
789773c65c
Fixed E2E test
2020-09-25 14:05:11 -07:00
Christopher Allford
44c7428358
Updated package lock files and fixed test error
2020-09-25 13:49:54 -07:00
Christopher Allford
760b0e4cdb
Merge branch 'master' into packages/factories-to-api-refactor
2020-09-25 13:19:36 -07:00
Christopher Allford
c09d91f6ce
Finished adding appropriate documentation to the API package
2020-09-25 11:11:17 -07:00
Ron Rennick
6b7d67e587
update onboarding flow for 4.6
2020-09-25 12:06:45 -03:00
Christopher Allford
ca0ea88e52
Updated the JSDoc and type-safety of repositories to better document the implemented operations
2020-09-24 14:22:38 -07:00
Ron Rennick
2ab59149ad
revert testing change to default.json
2020-09-24 12:27:35 -03:00
Julia Amosova
dcd0c46ab5
Merge pull request #27714 from woocommerce/fix/headless-flag-e2e-dev-mode
...
Add missing headless flag for running e2e tests in dev mode + README updates
2020-09-23 17:05:45 -04:00
Ron Rennick
bde41799af
merge master
2020-09-23 17:20:43 -03:00
Ron Rennick
a80dc37684
merge master
2020-09-23 16:26:17 -03:00
Ron Rennick
3fbdf46192
always remove the trailing slash from the base URL
2020-09-23 16:22:15 -03:00
Christopher Allford
a7175c5ad4
Adjusted create method signature to better replicate TypeScript behavior
2020-09-21 13:44:45 -07:00
Christopher Allford
1674c05b66
Fixed the package.json files array to exclude development content
2020-09-21 13:33:57 -07:00
Christopher Allford
5297b27c79
Moved the factories from the @woocommerce/api package into the @woocommerce/e2e-utils package
2020-09-21 13:14:26 -07:00
Christopher Allford
b962c10cee
Updated the readme for the API package
2020-09-21 12:32:44 -07:00
Christopher Allford
fba5a46243
Integrated the API package into the utils package again to generate simple products
2020-09-21 11:22:43 -07:00
Christopher Allford
8e7ef263a2
Adjusted the package exports to be easier to consume
2020-09-21 11:21:35 -07:00
Julia Amosova
12d546b280
Add `PUPPETEER_SLOWMO` to global process.env to enable it.
2020-09-20 15:34:47 -04:00
Julia Amosova
c78051c7a5
Place back `scrollIntoView` to OBW e2e test.
2020-09-18 19:15:53 -04:00
Julia Amosova
ff8e5bbc8b
Remove `scrollIntoView` from OBW e2e test as it is not needed.
2020-09-18 18:33:21 -04:00
Christopher Allford
bf70a3ea74
Updated lock files
2020-09-18 14:43:00 -07:00
Christopher Allford
d22ed6547e
Merge branch 'master' into package/e2e-environment/better-container-detection
2020-09-18 14:32:11 -07:00
Christopher Allford
866ab47dda
Adjusted the exports for clarity of use
2020-09-18 14:26:00 -07:00
Julia Amosova
6a93c8dd68
Added note to README on how to use `PUPPETEER_SLOWMO` variable.
2020-09-18 16:53:48 -04:00
Christopher Allford
b3b92e2d4d
Separated the construction of factories & repositories from the models for simplicity
2020-09-18 13:53:10 -07:00
Julia Amosova
30c904db68
Added `headless` & `slowMo` flags back to Puppeteer config.
2020-09-18 16:39:45 -04:00
Julia Amosova
38f14747fa
Update commands that need to be run to build e2e test env.
2020-09-18 16:05:36 -04:00
Julia Amosova
68c06683e7
Add note regarding re-initializing test container when `docker:down/up`.
2020-09-18 15:26:50 -04:00
Julia Amosova
24b987a409
Add link to `Test Variables` section when mentioning changing the port.
2020-09-18 15:22:25 -04:00
Julia Amosova
6a562f8dfa
Correct type: from `MariaDV` to `MariaDB` throughout e2e README.
2020-09-18 15:17:59 -04:00
Julia Amosova
085d7d884f
Add `Install NVM` section to README's Table of Contents.
2020-09-18 14:52:46 -04:00
Julia Amosova
2455a82f36
Add to README how to run tests using custom WP, PHP and MariaDV versions.
2020-09-18 14:48:26 -04:00
Julia Amosova
d66e7ef3b3
Update README with more accurate details on how to run e2e tests.
2020-09-18 14:30:54 -04:00
Julia Amosova
98edbef9a9
Add missing headless flag for running e2e tests in dev mode.
2020-09-18 13:43:44 -04:00
Christopher Allford
a9ee9806a4
Implemented the factory & repository for simple products
2020-09-17 13:31:39 -07:00
Christopher Allford
6c230ca7b3
Centralized the CRUD actions into a single kind of repository that can be easily used in every adapter case
2020-09-17 09:43:43 -07:00
Christopher Allford
3a7c96b7cd
Revised the base tsconfig to match Gutenberg more closely
2020-09-16 15:14:53 -07:00
Christopher Allford
011974ec09
Merge branch 'master' into packages/factories-to-api-refactor
2020-09-16 11:51:49 -07:00
Christopher Allford
f5e130c190
Merge pull request #27667 from woocommerce/fix/standardize-nvm-usage
...
Standardize usage of NVM
2020-09-16 11:40:48 -07:00
Christopher Allford
38afb8c2ff
Merge branch 'master' into packages/factories-to-api-refactor
2020-09-15 14:49:22 -07:00
Ron Rennick
87ea5dbffc
add eslint, babel config functions
2020-09-15 14:08:19 -03:00
Ron Rennick
7c509d8ddb
use tabs for indentation
2020-09-15 10:10:59 -03:00
Ron Rennick
0bf505ab12
Merge pull request #27645 from woocommerce/update/e2e-utils-for-package
...
prep e2e-utils package for publish
2020-09-14 14:40:19 -03:00
Christopher Allford
a77a1cc77c
Refreshed all lock files and removed "woocommerce" dependency from "e2e-environment"
2020-09-14 10:00:32 -07:00
Ron Rennick
be8ba23801
merge master
2020-09-11 15:32:10 -03:00
Ron Rennick
cd80e67717
merge master
2020-09-11 14:35:27 -03:00
Christopher Allford
2e7f1056e0
Replaced the environment dependency version resolution to use the Docker HTTP API
...
Since it's possible that the latest git tag isn't a Docker page we should get the latest version directly from Docker instead. This commit adds support for the `/v2/repositories/library/<image>/tags` endpoint and figures out the latest version from the response.
2020-09-10 14:26:44 -07:00
Christopher Allford
07bbf56ace
Removed unnecessary `woocommerce` dependency from E2E package
2020-09-10 13:05:31 -07:00
Ron Rennick
238fe43a61
prep e2e-utils package for publish
2020-09-10 16:10:48 -03:00
Ron Rennick
1c07d5ec5a
restore looking up tags from git, add npm install to travis e2e script
2020-09-10 14:54:35 -03:00
Ron Rennick
bff1e799f4
use better test for creating ready page
2020-09-10 13:23:18 -03:00
Christopher Allford
d0e6110e93
Fixed a failing E2E test
2020-09-09 14:47:44 -07:00
Christopher Allford
aabc8ccd6b
Updated all of the package-lock files using Node v10
2020-09-09 14:47:35 -07:00
Ron Rennick
25cbfd2452
run grunt directly in travis e2e
2020-09-09 17:00:06 -03:00
Christopher Allford
63e4dcf4a2
Created a transformer class to use in model repositories
...
Since models need to support both read & write transformations we can make dealing with this a bit easier in its own class now.
2020-09-09 10:00:30 -07:00
Ron Rennick
21e099d48f
merge master
2020-09-09 11:17:20 -03:00
Christopher Allford
39c5bc6b74
Refactored the factory to use a repository instead of an adapter so that we can expose more API functionality
2020-09-07 16:00:27 -07:00
Christopher Allford
a875ecb083
Refactored the HTTP layer to be more API-agnostic
...
Since we're going to be adding more services and CRUD actions it makes sense for our HTTP services to be less tied to the specific REST API implementation.
2020-09-04 11:27:34 -07:00
Julia Amosova
e224cd4b1b
Update how disablement of the extensions download is handled in OBW test
2020-09-04 11:47:02 -04:00
Julia Amosova
4ca4f37969
Update recommended business features checkbox selector in OBW test
2020-09-03 16:23:19 -04:00
Christopher Allford
c75f0f8886
Renamed the `@woocommerce/factories` package to `@woocommerce/api`
...
With the plan now to add more CRUD actions the scope of the package has transformed into a more general API package than one just for factories.
2020-09-03 12:28:17 -07:00
Julia Amosova
552545c0ac
Update number of industries in the loop from 10 to 9
2020-09-03 13:17:47 -04:00
Christopher Allford
c898e1de03
Fixed failing E2E test
2020-09-02 16:14:25 -07:00
Christopher Allford
f5771ebd0a
Fixed failing E2E test
2020-09-02 16:13:20 -07:00
Christopher Allford
b9d314e1ae
Fixed another E2E test
2020-09-02 15:47:15 -07:00
Christopher Allford
dde64b964f
Updated lock files & fixed failing E2E test
2020-09-02 14:50:08 -07:00
Christopher Allford
d3162b2f1d
Updated package-lock.json files
2020-09-02 14:39:49 -07:00
Christopher Allford
16cf8c81be
Revised the default environment variables to pull the version from the latest docker image
2020-09-02 12:47:27 -07:00
Ron Rennick
0b85ee58f8
update package-lock.json
2020-08-28 11:06:25 -03:00
Ron Rennick
17ee223e71
update package-lock.json
2020-08-28 11:03:28 -03:00
Ron Rennick
074b2b86c6
update package-lock.json
2020-08-21 13:39:33 -03:00
Ron Rennick
7a14368982
add small tweaks/checks for edge cases
2020-08-21 13:25:30 -03:00
Tam Mullen
b41bd5139d
Updating e2e test for OBW changes
2020-08-21 16:03:02 +01:00
Ron Rennick
dfdf4e9d18
update e2e config parsing to support no port
2020-08-19 09:57:14 -03:00
Claudio Sanches
9773675b8d
Merge branch 'master' into add/woorelease-support
2020-08-18 17:59:47 -03:00
Claudio Sanches
1699b34295
Use npm run build:core
2020-08-12 16:53:06 -03:00
Ron Rennick
4ba2e0267f
remove unused local test-e2e.json
2020-08-11 09:53:34 -03:00
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
Ron Rennick
c14ce54752
fix e2e docker:ssh command to work in any repo
2020-08-10 14:54:10 -03:00
Ron Rennick
6aa52c8499
remove duplicate readme text
2020-08-07 13:04:36 -03:00
Ron Rennick
db76c8ac2d
merge package config with factories changes
2020-08-07 10:53:51 -03: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
Ron Rennick
0ca4ce27c5
update e2e readmes
2020-08-05 16:58:38 -03:00
Ron Rennick
7f04d800e9
keep browser reset at end of setup
2020-08-05 15:01:43 -03: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
Ron Rennick
52d67cead1
move trash posts/products from sequencer to local config
2020-08-04 19:55:13 -03:00
Ron Rennick
14c9154fcb
use consistent MySQL configuration values
2020-08-04 16:17:00 -03:00
Ron Rennick
ba942aa32f
expose getAppRoot, getTestConfig in package
2020-07-29 20:03:29 -03:00
Ron Rennick
09a594443d
restore non-dev puppeteer config, move test config to sequencer
2020-07-29 18:57:59 -03:00
Ron Rennick
d4620b5351
merge master
2020-07-29 15:25:11 -03:00
Ron Rennick
1e365733b4
add local puppeteer config support
2020-07-29 15:13:22 -03:00
Ron Rennick
d9e9faaa44
use @automattic/puppeteer-utils
2020-07-28 16:29:19 -03:00
Ron Rennick
e78beaf569
move jest/puppeteer related packages to environment package
2020-07-28 12:00:46 -03: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
aca91f587d
update version script to work in both desktop and Travis, add fallback versions
2020-07-24 17:02:33 -03: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
Ron Rennick
06e3ae9939
fix software version checks in Travis
2020-07-24 10:57:16 -03:00
Ron Rennick
eaafc88d33
add port configuration support
2020-07-24 10:12:07 -03:00
Ron Rennick
4cffb9b95c
eliminate project root docker-compose.yaml
2020-07-23 15:38:40 -03:00
Ron Rennick
28b537662a
add PHP, MariaDB, WP env var version support
2020-07-23 14:30:24 -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
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