Commit Graph

2155 Commits

Author SHA1 Message Date
jamelreid a50f40e857 Updated WooCommerce menu page load script 2021-11-24 19:17:45 -05:00
jamelreid e5a12e5334 Added function to open WC Admin Page 2021-11-24 19:15:34 -05:00
jamelreid 8fdbc77bf8 Added WooCommerce menu page load test script 2021-11-24 12:15:30 -05:00
Ron Rennick 226d5ac423
port config, waitForSelector from puppeteer-utils (#31240) 2021-11-23 18:55:42 +01:00
Ron Rennick fa192d9c27
add shopper.logout() (#31120) 2021-11-23 14:28:17 +01:00
Ron Rennick e449511ff0
Clean up e2e-environment changes from monorepo reorg (#31233)
* add flag to distinguish between the development repo and npm package

* introduce local E2E file resolver function

* update package changelog and readme
2021-11-23 13:56:24 +01:00
Ron Rennick 23f4f1c744
avoid issues with preconfigured curl options in npm (#31232) 2021-11-23 13:16:05 +01:00
Ron Rennick c69b84f8ec
add e2e-core-tests build script (#31221) 2021-11-23 12:57:56 +01:00
Rodel 248d0ecc03 Added back assertion; clean up pre-existing zones 2021-11-22 21:23:43 +08:00
Rodel 3c31414c80 Merge branch 'trunk' into add/api-tests-orders-crud 2021-11-22 15:37:25 +08:00
Jeff Stieler 209566b7c4
Fix errant stock adjustment when saving partially refunded orders. (#31172)
* Preserve stock metadata for refunded items.

Prevents fully restocked items on partially refunded orders from having stock reduced on subsequent order updates.

* Add E2E test covering errant restocking fix.
2021-11-19 14:24:35 -07:00
Ron Rennick b698a80f36 add basic test spec installer 2021-11-19 17:02:02 -04:00
Rodel 38be0cf7c8 Merge branch 'trunk' into add/api-tests-add-complex-order 2021-11-19 23:31:42 +08:00
Rodel ca5124e1d1 Merge branch 'trunk' into add/api-t-order-search 2021-11-19 22:38:12 +08:00
Ron Rennick fc9c3c7aa0 Merge branch 'trunk' into fix/e2e-env-monorepo 2021-11-18 22:13:53 -04:00
Ron Rennick 202469fd5b add common utilities for cart, checkout coupon tests 2021-11-17 15:25:51 -04:00
Ron Rennick 02e814b191 add common utilities for cart, checkout coupon tests 2021-11-17 15:21:22 -04:00
Ron Rennick b901923017 deprecate analytics page test 2021-11-17 13:11:55 -04:00
Ron Rennick a45abc129f merge trunk 2021-11-17 12:48:36 -04:00
Ron Rennick b1a8664ff4 merge trunk 2021-11-17 12:46:23 -04:00
Greg d5113e9361 Fix retrieving status code for API tests 2021-11-17 09:02:45 -07:00
Ron Rennick 2bf628fc55 fix pnpm lock conflict 2021-11-17 10:15:50 -04:00
Ron Rennick 43d73eb32a update package changelog and readme 2021-11-17 10:02:15 -04:00
Ron Rennick 61fd4e0a5e introduce local E2E file resolver function 2021-11-17 09:50:40 -04:00
Christopher Allford 2f0a828493 Downgraded ts-jest
This was causing issues with building the API package, which in turn
broke the entire build.
2021-11-16 15:33:00 -08:00
Christopher Allford 471e5e7877 Fixed @woocommerce/api Builds
It looks like I missed the `pnpm-lock.yaml` update.
2021-11-16 15:19:33 -08:00
Ron Rennick 2f9a6a32c2 deprecate core e2e setup, onboarding tests 2021-11-16 18:51:24 -04:00
Jeff Stieler 2bac37f4e6
Orders Endpoint Acceptance Tests (#31033)
* Create more sample orders data.

* Code formatting.

* Add tests for pagination.

* Formatting.

* Add test case for inclusion and exclusion parameters.

* Add test for parent and parent_exclude parameters.

* Add test case for status parameter.

* Add test case for customer parameter.

* Add test case for product parameter.

* Create a test order with all numerical properties populated.

* Add test case for precision parameter.

* Add test case for search parameter.

* Add test case for orderby parameter.

* Move missed api-core-tests files.

* Force tests to run in band (sequentially).
2021-11-16 10:03:53 -07:00
Ron Rennick df582a20d3 add flag to distinguish between the development repo and npm package 2021-11-16 11:35:30 -04:00
Ron Rennick 98b63e027f
Merge pull request #31207 from woocommerce/fix/api-package-tests
Replace `moxios` With `axios-mock-adapter` in @woocommerce/api Package
2021-11-16 10:47:56 -04:00
And Finally 0bc7e4bc65
Combine My Subscriptions and Marketplace back into one Extensions page (#31085)
* Reverting changes in https://github.com/woocommerce/woocommerce/pull/30380, preparatory to merging the My Subscriptions and Marketplace pages back into one Extensions page.

* Moved category nav to a separate file.

* Added main nav tabs.

* Added category nav, styled the mobile version.

* Experiments with doing category tabs as a list.

* Styling category menu as a list of links in rectangular pills on desktop.

* Adjusting margins of product list in in-app marketplace.

* Removed `submenu_file` filter which called deleted `update_menu_highlight` method.

* Restored styling for update count bubble on My Subscriptions tab.

* Styling update bubble on My Subscriptions tab.

* Addressing design feedback. Restyled category pills to make them more obvious. Added `Browse categories` title before category menu on desktop. Changed `.addon-product-group-title` to an h2.

* Addressing feedback from https://github.com/woocommerce/woocommerce/pull/31085#pullrequestreview-806319880.

- Removing addition of `admin_title` filter calling deleted `update_my_subscriptions_title` method.
- Prepending `__DIR__` constant before path in `require` call.
2021-11-16 06:23:21 -07:00
Rodel 756644dac3 Removed flaky assertion 2021-11-16 15:50:51 +08:00
Christopher Allford 2a29754ab2 Revised @woocommerce/api Test Suite
This commit replaces the moxios package with the
axios-mock-adapter, in order to fix all of the failing
tests. This felt necessary because changing the
TypeScript configuration would have the largest
potential impact on this package, due to it
being written natively in it. This package is a
great candidate for testing all of the new
configuration changes out on.
2021-11-15 23:06:47 -08:00
Paul Sealock fc839d212d update all usages 2021-11-16 15:16:20 +13:00
Christopher Allford c91dda177d
Fix E2E Tests (#31205)
* Removed Changlogger Autoload

* Changed Jetpack Changelogger Formatter Loading

Rather than using the Composer autoload, we should use the
changelogger's "filename" option to point directly at the file.
This keeps the file out of the autoloads, since it's possible that
plugins or packages may be symlinked and break the relative
path to the plugin.
2021-11-16 15:01:50 +13:00
Ron Rennick e13869c442 fix merge conflicts 2021-11-15 13:03:14 -04:00
Ron Rennick 873fad37ce update utils changelog and readme 2021-11-15 12:59:28 -04:00
Rodel c924666812 Test for adding a complex order 2021-11-15 22:30:34 +08:00
Rodel 73974ea5f1 Changelog entry 2021-11-11 21:11:55 +08:00
Rodel c7bab0d3cd Added shipping method tests 2021-11-11 21:11:03 +08:00
Rodel 820110dbff Test for "List all shipping zones" 2021-11-11 20:02:30 +08:00
Rodel 8c54bcb748 Added update and retrieve shipping zone tests 2021-11-11 19:47:40 +08:00
Rodel 32d0a43a74 Added shipping zone tests 2021-11-11 19:39:40 +08:00
Rodel a33a1d7c87 Removed duplicate tests 2021-11-11 15:44:25 +08:00
Paul Sealock 15f26ee8f7 update to 3.0.2 of changelogger 2021-11-11 17:03:44 +13:00
Paul Sealock 5d6539d209 lock files 2021-11-11 16:55:05 +13:00
Paul Sealock 5c68568bb7 Revert "add nx composer-install targets"
This reverts commit ffaef64343.
2021-11-11 16:47:50 +13:00
Paul Sealock ffaef64343 add nx composer-install targets 2021-11-11 16:43:27 +13:00
Paul Sealock 20fb81eb5a point to next changelog 2021-11-11 16:38:38 +13:00
Paul Sealock e08cc18e16 js packages next changelogs 2021-11-11 16:34:50 +13:00
Paul Sealock a5abab9ab0 Add Jetpack Changelogger 2021-11-11 16:28:10 +13:00
Greg 8e69b7c477
Merge pull request #31104 from woocommerce/fix/29178
move clickAndWaitForSelector to utils package
2021-11-10 13:58:21 -07:00
Greg 405400cbf5
Merge pull request #31121 from woocommerce/fix/29381
add generic container environment variable support for PHP, DB
2021-11-10 13:24:16 -07:00
Ron Rennick 7fc5e1e088 fix merge conflicts 2021-11-10 15:51:00 -04:00
Ron Rennick 7850b930ce fix merge conflicts 2021-11-10 15:48:20 -04:00
Greg 6ecafbbf2a Fix minor issue in README table 2021-11-10 10:52:09 -07:00
Greg 008e4f19c4
Merge pull request #31114 from woocommerce/fix/30867
move coupon delete, add tax classes, rates to withRestApi
2021-11-10 10:49:26 -07:00
Ron Rennick 6d4e90ef59 make expect calls in withRestApi optional 2021-11-10 12:25:09 -04:00
Rodel 988618056d Added test for empty result set 2021-11-10 22:58:04 +08:00
Rodel ee3b315eaa Changed shipping phone data 2021-11-10 22:57:50 +08:00
Rodel 0a3a6a98c2 Checked out data/refund.js from trunk 2021-11-10 22:04:17 +08:00
Rodel 43b7f0ea29 Additional assertions 2021-11-10 22:03:51 +08:00
Rodel 684e1a19da Merge branch 'trunk' into add/api-tests-orders-crud 2021-11-10 21:47:35 +08:00
Rodel 2f87604ef1 Removed unnecessary dependencies 2021-11-10 21:46:50 +08:00
Ron Rennick ce20bd0931 add generic container environment variable support for PHP, DB 2021-11-10 06:48:59 -04:00
Ron Rennick 34e72a5f5f update readme, changelog 2021-11-10 05:24:54 -04:00
Roy Ho 9d08ac8ac3
Merge pull request #31095 from woocommerce/setup-nx
Setup nx
2021-11-09 20:26:37 -08:00
Ron Rennick 9736b15eb6
Merge pull request #31102 from woocommerce/fix/30655
remove duplicate gitignore entries
2021-11-09 16:46:05 -04:00
Ron Rennick 93b9745b80 arithematic to logical OR 2021-11-09 16:41:44 -04:00
roykho d839bdfc94
Implement executors for all script commands 2021-11-09 12:35:22 -08:00
Ron Rennick eeb331f160 move coupon delete, add tax classes, rates to withRestApi 2021-11-09 14:09:26 -04:00
Rodel 49647ea852 Added tests for order search 2021-11-09 18:19:44 +08:00
Rodel 1f341df486 Merge branch 'trunk' into add/api-tests-orders-crud 2021-11-09 14:38:19 +08:00
Ron Rennick 9582aa5107 move clickAndWaitForSelector to utils package 2021-11-08 13:38:55 -04:00
Ron Rennick c6ee9e3b0a use consistent defaultViewport 2021-11-08 12:51:54 -04:00
Ron Rennick a53e37f43b remove duplicate gitignore entries 2021-11-08 11:03:19 -04:00
Ron Rennick a6df312732
Merge pull request #31084 from woocommerce/fix/e2e-env-readme-links
Update links to moved e2e READMEs.
2021-11-05 15:54:30 -03:00
roykho 4501f13a87
Accommodate different directory names for woocommerce 2021-11-05 10:09:34 -07:00
roykho 7dc6ae6316
Add Nx basic script executors for packages 2021-11-05 08:15:04 -07:00
roykho e34803caa2
Add Nx lint to e2e-utils package 2021-11-05 05:59:47 -07:00
roykho b5715bfd88
Add Nx lint to e2e-environment 2021-11-05 05:54:57 -07:00
roykho 608d42711d
Implement Nx lint for API package 2021-11-05 05:43:46 -07:00
Ron Rennick efe7e4f8ba
Merge pull request #31010 from woocommerce/add/run-api-tests-on-pr
Run API tests on PR with e2e tests
2021-11-05 09:12:26 -03:00
roykho b64d0b3dfe
Add initial project.json config files to all packages and plugins 2021-11-04 14:51:04 -07:00
Tomek Wytrębowicz e73329fdf3 Update links to moved e2e READMEs. 2021-11-04 12:58:11 +01:00
Tomek Wytrębowicz 751d5bf3a7 Elaborate why Basic Auth is needed to use `e2e-utils.withRestApi`
Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>

Addresses https://github.com/woocommerce/woocommerce/pull/30724#discussion_r715113390
2021-11-04 12:25:52 +01:00
Tomek Wytrębowicz 0ec1bd8243 Add a note about the need of Basic Auth plugin to the docs.
Related to https://github.com/woocommerce/woocommerce/issues/30687#issuecomment-919989929
2021-11-04 12:25:52 +01:00
Greg 9df1b119c6
Merge branch 'trunk' into add/run-api-tests-on-pr 2021-11-03 08:47:30 -06:00
Greg 574b5282a2 Fix imports 2021-11-01 14:40:03 -06:00
Greg fabf6bf8c6 Code review feedback 2021-11-01 14:26:16 -06:00
Greg 812b672c5e Add in missing refunds test 2021-10-29 16:43:45 -06:00
Greg c6d5e45123 More missing files 2021-10-29 16:40:27 -06:00
Greg 0c90cf09e6 Add in missing refund data 2021-10-29 16:14:49 -06:00
Greg e45c270a51 Add file missing from merge 2021-10-29 15:33:37 -06:00
Greg a28840b1d9 Merge branch 'trunk' of github.com:woocommerce/woocommerce into add/run-api-tests-on-pr
# Conflicts:
#	.github/workflows/pr-build-and-e2e-tests.yml
#	plugins/woocommerce/tests/e2e/core-tests/specs/merchant/wp-admin-product-import-csv.test.js
2021-10-29 15:31:48 -06:00
Greg 5ba261950c Use category ID instead of category name 2021-10-29 15:19:14 -06:00
Rodel d2c6ce622f Corrected import path 2021-10-30 00:16:18 +08:00
Rodel 1850656a21 Add missing test data files in the new directory 2021-10-30 00:15:09 +08:00
Rodel 48c724d3d8 Remove unnecessary group tag 2021-10-30 00:13:24 +08:00
Rodel 28440b365e Moved test to new directory 2021-10-29 23:51:05 +08:00
Rodel 0fa113e29c Merge branch 'trunk' into add/api-tests-orders-crud 2021-10-29 23:34:12 +08:00
Paul Sealock 789d942f89
Update e2e package locations and add PNPM (#30977) 2021-10-29 08:32:31 +13:00
Paul Sealock ef015f740f git mv a few folders 2021-10-19 10:35:45 +13:00
Mike Jolley d17cd3358d Add note on unit tests 2019-06-26 15:17:52 +01:00
Mike Jolley 9a31db1b5a Add packages README 2019-06-25 13:15:44 +01:00