Commit Graph

3537 Commits

Author SHA1 Message Date
Veljko 9c32f421b7 Add new scenario and update changelogs 2021-03-18 17:23:44 +01:00
Veljko 4f98833094 Add first test import products 2021-03-18 13:42:59 +01:00
Veljko f73fdfa4f6 First part of the test 2021-03-18 12:11:38 +01:00
Ron Rennick e25ee7f36c fix merge conflicts 2021-03-17 16:40:49 -03:00
Greg fed4e14459
Merge pull request #29413 from woocommerce/fix/e2e-shipping-test
Attempt to fix flakiness in shipping test
2021-03-17 13:17:07 -06:00
Ron Rennick ddb940e993 Attempt to fix flakiness in shipping test
- Work around Delete and Edit action links not being visible
- delete all shipping zones at beginning of test
- use uiUnBlock instead of page wait
- ensure clicking method edit OK button
2021-03-17 14:48:06 -03:00
Greg b6f3c2b0be
Merge pull request #29383 from woocommerce/e2e/e2e-fix-flaky-checkout-coupons
Fixed flaky e2e test checkout coupons
2021-03-17 08:49:14 -06:00
Veljko V f65c493e38
Merge branch 'trunk' into e2e/e2e-merchant-search-orders 2021-03-17 09:07:51 +01:00
Néstor Soriano 17224d0ab1
Merge pull request #29345 from woocommerce/hw/low-stock-threshold-for-variations
Low stock threshold for variations
2021-03-17 08:59:32 +01:00
Greg c3e765642c
Merge pull request #29104 from woocommerce/e2e/e2e-merchant-settings-shipping-zones
Add new e2e test merchant shipping zones test
2021-03-16 19:07:24 -06:00
Ron Rennick a3aacf5661 update utils readme 2021-03-16 16:57:42 -03:00
Ron Rennick ed4f3af997 update/expand core tests and api readmes 2021-03-16 16:00:01 -03:00
Ron Rennick 34ef87acd3 Merge branch 'trunk' into fix/29277 2021-03-16 13:33:30 -03:00
Ron Rennick 48dc56d32a update e2e main and env readmes 2021-03-16 11:06:44 -03:00
Ron Rennick 53451e5b36 update init-wp-beta.sh with changes to initialize.sh 2021-03-16 10:54:47 -03:00
Tam Mullen a7bceeb50f
Merge pull request #28818 from woocommerce/e2e-shopper-pay-order
Add new e2e test shopper my account pay order
2021-03-16 13:26:21 +00:00
Peter Fabian 351c07d655 Improved tests, added save points, fixed comments. 2021-03-16 13:08:29 +01:00
Veljko 58d85a8321 Merge branch 'trunk' into e2e/e2e-fix-flaky-checkout-coupons 2021-03-16 09:44:55 +01:00
Veljko 449f3809b4 Merge branch 'trunk' into e2e/e2e-merchant-search-orders 2021-03-16 09:07:37 +01:00
Veljko 1e59f49f08 Merging with trunk and improving test 2021-03-16 09:02:52 +01:00
Veljko 33978a5e5b Merge branch 'trunk' into e2e/e2e-merchant-settings-shipping-zones 2021-03-16 08:54:18 +01:00
Greg d7eb6d0b9e
Merge pull request #28851 from woocommerce/e2e/api/poc-delete-products
Use api to delete products before e2e tests
2021-03-15 16:22:12 -06:00
Peter Fabian e6cdd74a79 Add parent's default for low stock if notthing is set on individual variation.
I.e. use variation low stock amount value, if not available, use parent product's value, if not available, use the store-wide default.
2021-03-15 18:31:31 +01:00
Ron Rennick 6031cd922e Merge branch 'trunk' into e2e/api/poc-delete-products 2021-03-15 14:14:31 -03:00
Ron Rennick 372b721b1c package lock maintenance, remove simple products in group product test 2021-03-15 14:04:37 -03:00
Ron Rennick b64c99a8fb Merge branch 'trunk' into update/e2e-api-product-delete 2021-03-15 13:47:56 -03:00
Ron Rennick 5d98dca84e Merge branch 'trunk' into fix/e2e-wp57-cli 2021-03-15 13:40:33 -03:00
Veljko 5897027080 Fixed flaky test checkout coupons 2021-03-15 13:14:48 +01:00
Claudio Sanches 16823082aa Removed Travis 2021-03-13 21:58:42 -03:00
Claudio Sanches 65cfa4866f Better CI messages 2021-03-13 21:06:06 -03:00
Claudio Sanches 75ed94bd38 Fixed PHPCS run and added cs2pr support 2021-03-13 21:01:21 -03:00
Veljko 6d24f4dc22 Update test 2021-03-13 20:49:45 +01:00
Veljko dfc38562ce Improve test 2021-03-13 19:43:29 +01:00
Veljko 21307e6603 Add checker for existing shipping zones 2021-03-13 18:54:48 +01:00
Veljko fc38b8961e Update test case 2021-03-13 14:23:40 +01:00
Veljko d1ca54514a Reorder tests 2021-03-13 13:56:38 +01:00
Veljko 471f43fd33 Fix reordering tests 2021-03-13 13:49:06 +01:00
Veljko 959ace94e5 Improve page util 2021-03-13 12:59:33 +01:00
Veljko 92a127bcbb Reorder test and improve code 2021-03-13 12:26:28 +01:00
Veljko 12e417ce71 Improve code 2021-03-13 11:55:44 +01:00
Veljko 88cdb83a55 Update test 2021-03-13 10:56:23 +01:00
Veljko V a3cef15e08
Merge branch 'trunk' into e2e/e2e-merchant-settings-shipping-zones 2021-03-13 00:00:10 +01:00
Veljko 70ed073231 Improve test and util 2021-03-12 23:53:04 +01:00
Veljko f903fdab29 Updated page util 2021-03-12 22:23:10 +01:00
Veljko bde3d1c919 Merge branch 'try/add-e2e-screenshot' into e2e/e2e-merchant-search-orders 2021-03-12 21:49:59 +01:00
Ron Rennick 91a4283075 update changelog, readme, fix test broken to test the bot 2021-03-12 16:40:20 -04:00
Ron Rennick 3fa03509db add token to channel join call, update package-lock 2021-03-12 15:40:09 -04:00
Ron Rennick 025b92d5da output error on unknown error, expand PR info 2021-03-12 13:07:10 -04:00
Veljko 26a9abd85e Merge branch 'try/add-e2e-screenshot' into e2e/e2e-merchant-search-orders 2021-03-12 17:55:53 +01:00
Ron Rennick 69f2ce608d output error data on unknown error 2021-03-12 12:39:03 -04:00
Ron Rennick 26f2353be9 Merge branch 'trunk' into update/e2e-api-product-delete 2021-03-12 12:01:41 -04:00
Veljko 7e3abe0f33 Merge branch 'trunk' into e2e/e2e-merchant-search-orders 2021-03-12 17:00:42 +01:00
Ron Rennick 698fdc3712 Merge branch 'trunk' into try/add-e2e-screenshot 2021-03-12 12:00:24 -04:00
Veljko 3ae4e7b4bc Merge branch 'try/add-e2e-screenshot' into e2e/e2e-merchant-search-orders 2021-03-12 09:26:20 +01:00
Jake Oehler Morrison 2f30a141bd Include DB env vars on cli service in e2e tests 2021-03-11 16:19:34 +00:00
Peter Fabian 1b53b724b2 Fix existing tests. 2021-03-11 17:02:22 +01:00
Ron Rennick d683e24259 explicitly join the slack channel 2021-03-11 10:46:04 -04:00
Ron Rennick 2c1b3b52a9 add order class and repository 2021-03-11 09:20:26 -04:00
Veljko 710e09687f Merge branch 'trunk' into e2e-shopper-pay-order 2021-03-11 10:40:14 +01:00
Ron Rennick 1cda09d260 fix api package build errors 2021-03-10 15:24:34 -04:00
Ron Rennick 12c0793217 add token to calls, remove block from test title 2021-03-09 16:49:47 -04:00
Ron Rennick bb907a6acd add slack secrets, deliberately break test 2021-03-09 16:11:48 -04:00
Ron Rennick f266f20101 delete vs trash product in e2e api 2021-03-09 13:45:05 -04:00
Ron Rennick ca2cf3cef0 Merge branch 'trunk' into try/add-e2e-screenshot 2021-03-09 13:29:31 -04:00
Ron Rennick d4f56c47a8 Merge branch 'trunk' into update/core-tests-group-api 2021-03-09 13:27:05 -04:00
Ron Rennick 9352dd1b81
Merge pull request #29309 from woocommerce/fix/e2e-product-search
Fix flaky issues with e2e product filter, search, sort test
2021-03-09 13:26:01 -04:00
Ron Rennick 0395457e0c fix api package build errors 2021-03-09 11:33:29 -04:00
Ron Rennick b389cdb76e merge changelog with trunk 2021-03-09 10:39:15 -04:00
Ron Rennick 2d8ab6e2f8 include the current block in screenshot params 2021-03-09 10:19:43 -04:00
Ron Rennick add5d73df2 update browse,search,sort test to be more reliable 2021-03-09 08:49:52 -04:00
Ron Rennick c42e2db280 use api to create products for search test 2021-03-08 22:39:30 -04:00
Ron Rennick 4c88973039 add slack channel support 2021-03-08 19:22:55 -04:00
Ron Rennick 50e9ff2783 make screenshots optional 2021-03-08 16:56:47 -04:00
Ron Rennick b686a45339 update package depenendencies 2021-03-08 16:17:27 -04:00
Jonathan Sadowski 4a5c6b86b3 Update e2e/env CHANGELOG for wc-e2e space fix 2021-03-08 14:06:14 -06:00
Ron Rennick 0e6d14b12d create screenshot on e2e test failure 2021-03-08 15:07:29 -04:00
Jonathan Sadowski e472c99a5c Fix E2E shorthand script to allow for directories with spaces 2021-03-08 11:38:41 -06:00
Ron Rennick 1664ece7eb use valid tax status on fees 2021-03-08 09:59:46 -04:00
Ron Rennick b05a97e2c0 add order types 2021-03-07 23:06:48 -04:00
Veljko ed9b4762ae Update test and utils methods 2021-03-07 15:46:03 +01:00
Veljko V 1fb27ec3dd
Merge branch 'trunk' into e2e/e2e-merchant-search-orders 2021-03-06 12:13:18 +01:00
Veljko 94f83cb859 Revert changes and add waits 2021-03-06 12:09:12 +01:00
Ron Rennick 7261813fc9 Merge branch 'trunk' into fix/27873 2021-03-05 23:47:41 -04:00
Ron Rennick 03c60b988b add order classes 2021-03-05 23:44:16 -04:00
Ron Rennick 30d7b2ce9d
Merge pull request #29270 from woocommerce/add/merchant-order-email-flow
Add merchant order email flow e2e test
2021-03-05 11:21:13 -04:00
Roy Ho 9a96ef1246
Merge pull request #29285 from Saggre/fix/typos
Fix typos in docs
2021-03-05 07:17:52 -08:00
Veljko e6fe91ee02 Improve code 2021-03-05 15:54:45 +01:00
Ron Rennick f36c802eb3
Merge pull request #29279 from woocommerce/add/delete-step-product-api-tests
Added delete step to API product tests
2021-03-05 10:43:39 -04:00
Veljko 26c71b9db6 Improve code 2021-03-05 13:57:46 +01:00
Veljko 4b12dfdeda Improve test code 2021-03-05 12:45:16 +01:00
Veljko 7d8e5430ec Fix select element 2021-03-05 12:05:07 +01:00
Veljko 9d52012b8e Improve code and fix flakyness 2021-03-05 11:27:39 +01:00
Veljko 7eae2f2fe8 Improve test and add waits 2021-03-05 11:19:43 +01:00
Veljko c9201e4817 Improved page util method 2021-03-05 10:38:55 +01:00
Saggre 24167a5eed Fix typos in docs 2021-03-05 11:19:58 +02:00
Veljko c10d03b6ab Updated page util method 2021-03-05 10:16:55 +01:00
Veljko V a4d6183229
Merge branch 'trunk' into e2e/e2e-merchant-search-orders 2021-03-05 09:08:30 +01:00
Veljko b2a395c918 Update test and util 2021-03-05 09:07:23 +01:00
Veljko V b1c13e161b
Merge branch 'trunk' into e2e/e2e-merchant-settings-shipping-zones 2021-03-05 08:53:21 +01:00
Veljko eaf8039223 Add waits to fix flakyness 2021-03-05 08:50:11 +01:00
zhongruige 5bf3e8ed98 Code review feedback 2021-03-04 14:17:43 -07:00
Greg b48d2bfc8f
Merge branch 'trunk' into add/merchant-order-email-flow 2021-03-04 13:53:12 -07:00
Veljko V f44c2fa549
Merge branch 'trunk' into e2e-shopper-pay-order 2021-03-04 21:51:32 +01:00
Veljko V 26be0bf713
Merge branch 'trunk' into e2e/e2e-merchant-search-orders 2021-03-04 20:38:49 +01:00
Veljko 1ab3935e1d Update test and page util 2021-03-04 20:32:53 +01:00
Veljko V 9e1d785086
Merge branch 'trunk' into e2e/e2e-merchant-settings-shipping-zones 2021-03-04 19:56:16 +01:00
Veljko 1accf7166a Add UiUnblocked 2021-03-04 19:46:47 +01:00
zhongruige 6fac4ab6d5 Added delete step to product tests 2021-03-04 11:43:15 -07:00
Veljko V 854ea026b2
Merge branch 'trunk' into e2e-shopper-browse-search-sort 2021-03-04 10:06:30 +01:00
Greg e52504679d
Merge pull request #29236 from woocommerce/fix/28883
add variable product support to api package
2021-03-03 17:20:20 -07:00
Ron Rennick 7a892f61d2 update shared objects among models
- add optional defaultKey, defaultValue to meta data
- move REST _links object to model shared
- add _links collection to coupons
2021-03-03 20:02:10 -04:00
Ron Rennick a106807c51 changes per review 2021-03-03 19:07:43 -04:00
Greg 7b160fa631
Merge branch 'trunk' into add/merchant-order-email-flow 2021-03-03 15:03:23 -07:00
Greg 6b3ca3a456
Merge pull request #29098 from woocommerce/e2e/e2e-page-utils-coupons
Add new e2e page utils and update coupon tests
2021-03-03 14:34:29 -07:00
zhongruige be47060e86 Add flag for clicking to update an order 2021-03-03 10:52:50 -07:00
zhongruige c960edb786 Code review feedback 2021-03-03 10:49:06 -07:00
zhongruige d6b2a6cadd Fix minor type in changelog 2021-03-03 10:01:31 -07:00
zhongruige 4610d5cf16 Updated READMEs and CHANGELOGs 2021-03-03 09:57:11 -07:00
zhongruige afac2aefab Added etests around merchant email flows 2021-03-03 09:45:16 -07:00
Ron Rennick 9ff3122477 add group api test to run all api tests 2021-03-03 12:25:24 -04:00
Ron Rennick 3ab844043f update changelogs, small fixes noticed in review 2021-03-03 11:39:09 -04:00
Ron Rennick df22234a91 add basic variation api tests 2021-03-03 10:31:09 -04:00
Veljko 3b24423b0c Update removeCoupon to include coupon name 2021-03-03 14:57:10 +01:00
Veljko V 92d1f29581
Merge branch 'trunk' into e2e-shopper-pay-order 2021-03-03 14:10:20 +01:00
Veljko 29d8efe012 Edit default json file 2021-03-03 14:02:59 +01:00
Moon 00a272fa85
Merge pull request #29174 from woocommerce/add/28568-dashboard-widget-finish-setup
Add/28568 dashboard widget - setup
2021-03-02 16:46:51 -08:00
Ron Rennick 3ca97c97ff add variable product api test to core tests 2021-03-02 18:47:01 -04:00
Ron Rennick 8b955f79d0 finish out splitting out price properties 2021-03-02 16:01:20 -04:00
Ron Rennick 9675b7ac15 merge trunk 2021-03-02 15:38:03 -04:00
Ron Rennick 220d2b70f3 give grouped-product consistent file name 2021-03-02 14:33:30 -04:00
Ron Rennick 4e55734795 merge trunk 2021-03-02 14:28:16 -04:00
zhongruige 14c0e296ed Remove extra space 2021-03-02 10:24:25 -07:00
zhongruige 69f27b5e6c Code review feedback 2021-03-02 08:57:30 -07:00
zhongruige d8cebb5cc1 Merge branch 'trunk' of github.com:woocommerce/woocommerce into add/api-package-coupons 2021-03-02 08:17:28 -07:00
Néstor Soriano 1181c4be4a
Merge pull request #28535 from woocommerce/add/disable_wc_admin_tracking
Tracker: Add tracking of woocommerce_admin_disabled usage.
2021-03-02 09:35:38 +01:00
Ron Rennick 23c4385f54 remove dup postStatus, finish variations repository, fix build errors 2021-03-01 19:03:33 -04:00
zhongruige 66b7a3cc01 Added coupon to API package and related tests 2021-03-01 11:36:04 -07:00
Ron Rennick 40236cf176 add variation repository 2021-02-28 00:28:23 -04:00
Ron Rennick 8788e204ce add support for creating children 2021-02-27 23:39:59 -04:00
Ron Rennick 9bb3bc6a10 remove price from base product data 2021-02-26 17:19:54 -04:00
Ron Rennick e677380094 add base variable product support to api package 2021-02-26 17:07:40 -04:00
Roy Ho f6d77c206d
Merge pull request #29228 from woocommerce/fix/28238
Update default GIT branch
2021-02-26 11:59:09 -08:00
Ron Rennick 5f6e814d38 complete price property breakout with 3 product types 2021-02-26 14:52:58 -04:00
Ron Rennick 07c4697068 use product URL functions when creating rest repositories 2021-02-26 14:20:37 -04:00
Ron Rennick e3f4e3b0d5 merge trunk 2021-02-26 13:51:42 -04:00
Greg bc9e3bf3ff
Merge pull request #29198 from woocommerce/fix/28885
Add external product support to api package
2021-02-26 09:16:02 -07:00
Ron Rennick 533feb7713 add product variation class to api package 2021-02-26 11:38:12 -04:00
Claudio Sanches d6e3cf6de9 Update default GIT branch 2021-02-25 20:51:14 -03:00
Timmy Crawford 64e934e79b Remove debug code in tests. 2021-02-25 15:19:27 -08:00
Timmy Crawford 5cf3c6be8c Fix tests. 2021-02-25 15:19:27 -08:00
Timmy Crawford c7a19b538a Updates per feedback. 2021-02-25 15:19:27 -08:00
Timmy Crawford 47a3d1bfb3 Tracker: Add tracking of woocommerce_admin_disabled usage. 2021-02-25 15:19:27 -08:00
Claudio Sanches 23710744c0
Merge pull request #29208 from woocommerce/fix/add-to-cart-variation-id
Validate variation ID while adding products to the cart
2021-02-25 19:13:32 -03:00
Tam Mullen 651bcb070a Updated core test changelog 2021-02-25 15:00:30 +00:00
Tam Mullen b6c4623057 Added tests for the merchant view order, update order status and update order details flows. 2021-02-25 15:00:30 +00:00
Tam Mullen 87aee208b6 Updated test comments and assertions based on feedback 2021-02-25 14:56:53 +00:00
Tam Mullen 502396ee00 Updated core test changelog 2021-02-25 14:56:53 +00:00
Tam Mullen 2e736d3e74 Updated from using StoreOwnerFlow to merchant 2021-02-25 14:56:53 +00:00
Tam Mullen 427225a3e1 Added tests for the merchant view order, update order status and update order details flows. 2021-02-25 14:56:53 +00:00
louwie17 893fe6cc24
Merge pull request #29149 from woocommerce/update/28569_status_widget_net_sales_link
Woocommerce dashboard status widget net sales link and logic
2021-02-25 09:09:29 -04:00
Ron Rennick 8b9e1701e1 add grouped product to e2e configuration 2021-02-24 15:48:27 -04:00
Ron Rennick 898e8a3a93 add grouped product test for api package 2021-02-24 15:16:38 -04:00
Ron Rennick 1b7e6933c6 add support for grouped product to api package 2021-02-24 10:29:02 -04:00
Claudio Sanches c86b0c578a Fixed copy and paste 2021-02-23 19:55:54 -03:00
Tam Mullen 65443d923b
Merge pull request #29092 from woocommerce/add/e2e-shopper-variable-product-updates
Added new tests for Shopper / Product / Variable Product Info updates depending on variation
2021-02-23 21:43:31 +00:00
Ron Rennick 9cf001e403 separate price properties in api package 2021-02-23 16:44:36 -04:00
Ron Rennick ddcb8ed744
Merge pull request #29207 from Marcuzz/fix/e2e-env-custom-init-file
Only use customInitFile in e2e-environment if it's a string
2021-02-23 15:39:27 -04:00
Claudio Sanches 76e1ba4bf0 Validate variation ID while adding products to the cart 2021-02-23 16:27:57 -03:00
Marcus 3201a99995 fix: only use customInitFile in e2e if it's a string
in WSL2 the second argument is an instance of Command and can not be used with path.resolve
2021-02-23 20:12:51 +01:00
Ron Rennick 404e3aeb7c update changelog, remove sale price from test 2021-02-23 14:44:47 -04:00
Peter Fabian 35d4ee4073
Merge pull request #28699 from woocommerce/fix/absolute-download-paths
Prevent local relative downloadable products to be treated as "absolute"
2021-02-23 11:50:34 +01:00
Ron Rennick dcb76a3047 use common buildURL function 2021-02-23 04:52:43 -04:00
Ron Rennick 116dccd12a add basic external product api test 2021-02-23 04:17:45 -04:00
Moon 5c99233905 Minor fixes
* Removed extra double quotation from the image tag

* Fixed typo in the init() method

* Moved init() method body into the constructor -- a separate method is not necessary
2021-02-22 20:33:02 -08:00
Moon 781c5e24d7 Status dashboard widget should be rendered only if onboarding tasks have been completed or hidden 2021-02-22 15:29:47 -08:00
Ron Rennick cc86f19dec fix up some in code docs 2021-02-22 17:16:17 -04:00
Ron Rennick 2e2b53cd7d add external product type to api package 2021-02-22 17:12:30 -04:00
Greg 3830dcefba
Update CHANGELOG.md
Fixed minor type in `CHANGELOG.md`
2021-02-22 13:13:04 -07:00
zhongruige 15825a5a13 Code review feedback 2021-02-22 13:09:11 -07:00
zhongruige 75aefa6325 Merge branch 'master' of github.com:woocommerce/woocommerce into add/e2e-shopper-variable-product-updates 2021-02-22 13:07:43 -07:00
Claudio Sanches f41250df39 Added unit test for cart validation 2021-02-22 13:14:43 -03:00
Greg 5ca996b44a
Merge pull request #29079 from woocommerce/try/handle-confirm-dialog
add delay to confirm dialogs on refund test
2021-02-19 15:58:58 -07:00
Tam Mullen e937a92723
Merge pull request #28869 from woocommerce/add/e2e-merchant-product-views
Added tests around product search and editing a product
2021-02-19 22:34:31 +00:00
Greg 6f9c00cd1c
Merge pull request #29118 from woocommerce/packages/api/product-properties
Separate product properties into property groups
2021-02-19 14:24:14 -07:00
Veljko 4915785684 Fix flakiness in test 2021-02-19 19:38:02 +01:00
Veljko b1ed9e65d8 Fix failing build on TravisCI 2021-02-19 18:59:24 +01:00
Veljko 85bda2c8f2 Fix flakiness in test 2021-02-19 18:16:54 +01:00
Veljko bf46077f55 Fix invalid spaces 2021-02-18 22:48:13 +01:00
Veljko 10a5c8df63 Update components missing params 2021-02-18 22:05:14 +01:00
Veljko a77a4f264e Add new e2e test merchant order searching 2021-02-18 21:53:30 +01:00
Lourens Schep 966aca59ad Removed external class and moved logic to private functions 2021-02-18 16:05:00 -04:00
Lourens Schep 0fc81a27fc Add tests 2021-02-18 12:01:52 -04:00
Veljko eabee48a32 Remove waits and reorder test 2021-02-18 12:49:04 +01:00
Vedanshu Jain 03ba8838b1
Merge pull request #29099 from woocommerce/fix/27376
Make the refunds creation REST API behave more as documented
2021-02-18 14:25:38 +05:30
Moon bc3219e22e Add tests for the finish setup dashboard widget and clean up code 2021-02-17 16:07:50 -08:00
Claudio Sanches 6fae8ca40b
Merge pull request #29146 from woocommerce/fix/27290-rest-api-order-updates
Throw an error if a coupon item ID (readonly) is specified during an order update | #27290
2021-02-16 17:04:49 -03:00
barryhughes f79b3f9120 Supporting tests for handling coupon-related order updates (via REST API) | #27290 2021-02-16 10:28:46 -08:00
jonathansadowski f6054ab059
Merge pull request #29115 from woocommerce/fix/27434
Fix wrong taxonomy caching in term and product attributes controllers
2021-02-16 10:50:28 -06:00
artpi cca06857e9 Fix tests 2021-02-16 16:19:55 +01:00
artpi dc7410b6b3 Extra protections 2021-02-16 15:51:49 +01:00
artpi 774d7e38cd Better url parsing 2021-02-16 15:09:23 +01:00
artpi 3ffeeea8e4 Add a few tests 2021-02-16 10:52:34 +01:00
artpi d97bfaed4f Better instructions for running tests db 2021-02-16 10:21:13 +01:00
Nestor Soriano 436a3db6e4 Fix code standards errors 2021-02-16 09:23:50 +01:00
Ron Rennick 9e55856875 add missing update params 2021-02-15 23:27:22 -04:00
Ron Rennick ff79153dd5 add product links collections 2021-02-15 16:59:11 -04:00
Ron Rennick 84f5223dd5 add related and upsell ids 2021-02-15 14:44:40 -04:00
Ron Rennick 653ca39121 add remaining single value props to abstract product 2021-02-15 14:15:37 -04:00
Claudio Sanches 74bb66dc6d
Merge pull request #27671 from mahmoudsaeed/master
Make WC_Tax::get_tax_rate_classes() public
2021-02-15 14:31:25 -03:00
Greg 3ad6a439e3
Merge branch 'master' into add/e2e-shopper-variable-product-updates 2021-02-15 08:20:22 -07:00
Greg 43a7d5d806
Merge branch 'master' into add/e2e-merchant-product-views 2021-02-15 08:19:52 -07:00
Veljko 46655e83a2 Add timeout waits in tests 2021-02-13 09:59:14 +01:00
Ron Rennick 18565bf8ee First pass at separating product properties into groups 2021-02-12 15:29:22 -04:00
Veljko fc3b342545 Update changelogs and comments 2021-02-12 18:19:48 +01:00
Veljko 2b0127f9e3 Fix flaky scenarios and improve code 2021-02-12 17:43:01 +01:00
Veljko 1e26d880c1 Finalize test cases and scenarios 2021-02-12 16:10:23 +01:00
Nestor Soriano 00d6dc40f7 Fix wrong caching of taxonomy in terms and attributes controllers.
The WC_REST_Terms_Controller and WC_REST_Product_Attributes_V1_Controller
classes have a get_taxonomy method that gets the name of the taxonomy
to process from a taxonomy id passed in the request, but once the
taxonomy name has been obtained it's cached and sbsequently reused.
The problem is that these controller instances are reused if more than
one request is processed programmatically, and thus the taxonomy that
was cached once is always used even if the new request specifies a
different taxonomy id.

The fix consists of using a dictionary of taxonomy id - taxonomy name
instead of one single taxonomy for caching.

In the case of WC_REST_Terms_Controller there's a protected $taxonomy
property that needs to be kept for compatibility, it's now set to
the last taxonomy name that has been introduced in the dictionary.
2021-02-12 15:12:58 +01:00
Veljko 7b42416718 Improve test and add new scenarios 2021-02-12 11:18:25 +01:00
Veljko e724f21f6d Update changelog and readme 2021-02-11 19:11:58 +01:00
Veljko 58b564f1cb Add new component for shipping zones 2021-02-11 19:05:50 +01:00
Veljko 8891509478 Add new e2e test merchant shipping zones
In progress still
2021-02-11 17:47:58 +01:00
Veljko 01850a9cec Merge branch 'master' into e2e-shopper-browse-search-sort 2021-02-11 15:03:31 +01:00
Veljko c09a151392 Merge branch 'master' into e2e-shopper-browse-search-sort 2021-02-11 15:02:34 +01:00
Vedanshu Jain 5a707f3e74
Merge pull request #28849 from woocommerce/fix/27521-2
Verify country code on checkout
2021-02-11 18:59:04 +05:30
Veljko fff3904bbb Add new page utils and update coupon tests 2021-02-11 10:30:39 +01:00
Nestor Soriano fae00e2bdf Make the refunds creation REST API behave more as documented
- Allow the list of line items to be a non-associative array
  where each item is identified by an "id" field
- Same for taxes inside line items, specify amount to refund in
  a "refund_total" key as in the case of line items
- Allow "quantity" keys as synonyms of "qty"

Also calculate "amount" automatically if missing and when all the
line items and taxes have a valid "refund_total" key.
2021-02-11 09:51:13 +01:00
Veljko V c755b5d0a7
Merge branch 'master' into e2e-shopper-pay-order 2021-02-11 09:13:52 +01:00
Veljko V 56cb17c9f7
Merge branch 'master' into e2e-shopper-browse-search-sort 2021-02-11 09:05:21 +01:00
Greg 6d16e6831a
Merge pull request #29064 from woocommerce/add/e2e-merchant-order-customr-payment-page
Add e2e test: merchant order customer payment page
2021-02-10 16:01:47 -07:00
Veljko 5a09000058 Merge branch 'master' into e2e-shopper-browse-search-sort 2021-02-10 22:31:42 +01:00
Veljko 1023075b75 Merge branch 'master' into e2e-shopper-pay-order 2021-02-10 22:30:55 +01:00
zhongruige 0fea99f6be Merge branch 'master' of github.com:woocommerce/woocommerce into add/e2e-merchant-product-views 2021-02-10 12:59:13 -07:00
zhongruige 27599e82cb Merge branch 'master' of github.com:woocommerce/woocommerce into add/e2e-shopper-variable-product-updates 2021-02-10 12:58:17 -07:00
Greg dcbbde1ce6
Merge pull request #29082 from woocommerce/e2e/e2e-fix-flaky-cart-coupons-test
Make cart coupons test more granular
2021-02-10 12:57:35 -07:00
Ron Rennick cd8826e85f
Merge pull request #29037 from woocommerce/packages/update-e2e-docs
Update E2E docs
2021-02-10 15:29:41 -04:00
zhongruige 8f81ded6c0 Added new tests for shopper variable product updates 2021-02-10 11:27:50 -07:00
zhongruige 642c3aa40f Merge branch 'master' of github.com:woocommerce/woocommerce into add/e2e-merchant-product-views
# Conflicts:
#	tests/e2e/core-tests/CHANGELOG.md
#	tests/e2e/utils/README.md
2021-02-10 09:19:14 -07:00
Veljko f3b18880f0 Add waits to avoid flakiness 2021-02-10 13:22:04 +01:00
Veljko c7cf42020f Remove unnecessary code from test 2021-02-10 12:29:56 +01:00
Veljko c27aa94a80 Updated cart coupons test 2021-02-10 11:51:08 +01:00
Veljko 57fa280533 Merge branch 'master' into e2e-shopper-pay-order 2021-02-10 10:57:52 +01:00
Nestor Soriano e82ab487b6 validate_posted_data: check if we actually need to validate the shipping country. 2021-02-10 10:05:24 +01:00
Veljko 5a16e5b972 Update changelogs 2021-02-10 09:24:40 +01:00
Veljko 9fe10b23ba Update test description 2021-02-10 09:13:35 +01:00
Ron Rennick 93f8c067fe add delay to confirm dialogs on refund test 2021-02-09 23:08:29 -04:00
zhongruige 5d228cc4ab Code review feedback 2021-02-09 13:35:20 -07:00
Veljko V ef5221e307
Merge branch 'master' into e2e-shopper-browse-search-sort 2021-02-09 18:32:58 +01:00
zhongruige dfeea59f6b Minor wording change 2021-02-08 17:03:19 -07:00
zhongruige b52c31063f Added new tests for customer order page in the merchant orders flow 2021-02-08 17:01:21 -07:00
Ron Rennick c477644d2d
Merge pull request #28906 from woocommerce/package/utils/update/factory-dependency
@woocommerce/e2e-utils: updated fishery to 1.2
2021-02-08 19:03:52 -04:00
Greg 73c2eb20a0
Merge pull request #29060 from woocommerce/packages/ignore-default-json
allow env default.json to be untracked in git
2021-02-08 15:58:04 -07:00
Ron Rennick 493a8934be Merge branch 'master' into package/utils/update/factory-dependency 2021-02-08 16:51:02 -04:00
Ron Rennick 099b1c486a allow env default.json to be untracked in git 2021-02-08 16:12:10 -04:00
Ron Rennick d2fd592819 fix import in get-app-name.js 2021-02-08 15:57:58 -04:00
Greg eb2491b93b
Merge pull request #28855 from woocommerce/e2e-shopper-grouped-product
Add new e2e test shopper grouped product
2021-02-08 11:34:40 -07:00
Nestor Soriano 07f3d9dee6 Add unit tests for the WC_Checkout class. 2021-02-08 15:49:38 +01:00
jonathansadowski 10f92ca091
Merge pull request #29043 from woocommerce/fix/25261
Fix price filtering when there are variations.
2021-02-05 12:19:42 -06:00
Nestor Soriano 3976abffd6 Fix price filtering when there are variations.
The price filtering query wasn't working properly when there are
variations with different prices: if at least one variation was
outside of the price range but other were inside, the product wasn't
being listed.
2021-02-05 16:34:42 +01:00
Veljko c18cbcec02 Remove variable from test 2021-02-05 10:49:52 +01:00
Veljko 3294897517 Add new shopper method and update test 2021-02-05 10:30:25 +01:00
Veljko 2bc07e9b55 Fix spacing in code 2021-02-05 09:29:30 +01:00
Ron Rennick 8fde150ba9 update built-in readme with shorthand script 2021-02-04 15:52:18 -04:00
Veljko 5c7fa67f35 Reorder shopper tests 2021-02-04 20:49:55 +01:00
Ron Rennick 371f2c31a6 update missed StoreOwner/CustomerFlows in docs, improve readability of some sections 2021-02-04 15:45:57 -04:00
Veljko 1d6d727350 Revert back change and update code 2021-02-04 20:44:29 +01:00
Veljko 5b408704e0 Merge branch 'master' into e2e-shopper-browse-search-sort 2021-02-04 20:28:18 +01:00
Veljko 945d8bdf4a Update comment 2021-02-04 18:07:20 +01:00
Veljko 961ce70a2b Fix issue after merging master 2021-02-04 17:50:49 +01:00
Veljko be56fa7772 Reorder shopper tests 2021-02-04 17:23:37 +01:00
Veljko f6a19c1430 Reorder scenarios within test 2021-02-04 14:51:17 +01:00
Veljko 7f2163fdd8 Add new test shop browse search sort products 2021-02-04 14:44:23 +01:00
Veljko ff71de8578 Fix spaces and split tests 2021-02-03 13:13:28 +01:00
Veljko 98fc4d5f80 Remove appName from config file 2021-02-02 13:38:36 +01:00
Ron Rennick ba6debf83b add ts-ignore for interface 2021-02-01 22:02:15 -04:00
Ron Rennick 610e0d4f17 simplify imports/exports in api package 2021-02-01 19:41:18 -04:00
Veljko 649cb4cd8d Reorder shopper test execution for new test 2021-02-01 18:29:15 +01:00
Ron Rennick 898051bd16 package lock maintenance 2021-02-01 13:03:13 -04:00
Veljko 2a3e661784 Fix flaky component for final test creation 2021-02-01 14:31:02 +01:00
Veljko V 6d6554ccbd
Merge branch 'master' into e2e-shopper-grouped-product 2021-02-01 12:25:03 +01:00
Ron Rennick becf1e8b33 Merge branch 'master' into package/utils/update/factory-dependency 2021-01-29 10:52:50 -04:00
Nestor Soriano 2c957d2531 Merge branch 'master' into fix/25900-take-2 2021-01-29 10:00:51 +01:00
Claudio Sanches 6701ce9c9d
Merge pull request #26983 from woocommerce/fix/25082
Use tax location from order while computing tax in discount.
2021-01-28 16:59:59 -03:00
Ron Rennick 3e4a7b87d6 Merge branch 'master' into e2e/api/poc-delete-products 2021-01-28 14:49:35 -04:00
Veljko 2451b636d7 Merge branch 'master' into e2e-shopper-pay-order 2021-01-28 19:46:06 +01:00
Veljko 6b15fe98e5 Revert back index reorder changes 2021-01-28 19:45:39 +01:00
Ron Rennick e1a9fa0dc6 Merge branch 'master' into packages/env/clean-up-console 2021-01-28 14:21:12 -04:00
Ron Rennick a252b3a3d8 use workaround for coupon already applied 2021-01-28 10:39:48 -04:00
Veljko 6a64a39b39 Reorder test in index to avoid flakyness 2021-01-28 12:10:50 +01:00
Veljko bfa9cc1788 Reorder test in index and update readme
I added also missing for other pull requests that were merged already
2021-01-28 11:12:56 +01:00
Ron Rennick de759607d1 use correct coupon codes to total $0 2021-01-27 21:04:01 -04:00
Ron Rennick 1195e79c17 clear coupon code for entry 2021-01-27 20:34:56 -04:00
Ron Rennick d18dc96158 make cart coupon test more granular 2021-01-27 17:15:39 -04:00
Veljko 57a798c0e9 Merge branch 'master' into e2e-shopper-pay-order 2021-01-27 17:38:03 +01:00
zhongruige 1e36385fc8 Merge branch 'master' of github.com:woocommerce/woocommerce into add/e2e-merchant-product-views 2021-01-27 08:05:14 -07:00
Ron Rennick 2acfa416c7 Merge branch 'master' into e2e/api/poc-delete-products 2021-01-27 10:25:01 -04:00
Ron Rennick 694aff70cb Merge branch 'master' into packages/env/clean-up-console 2021-01-27 10:23:08 -04:00
Ron Rennick bb4e654cce
Return jest error for Travis (#28929)
* Return jest error for Travis

* fix onboarding flow for WCA 1.9.0
2021-01-26 21:59:40 +01:00
Ron Rennick f48ca7cade eliminate repeated missing resource messages in E2E 2021-01-26 11:42:51 -04:00
Ron Rennick d882433db4
Merge pull request #28661 from woocommerce/e2e-shopper-cart-apply-coupon
Add new e2e test shopper cart apply coupon
2021-01-25 13:34:23 -04:00
Christopher Allford 3ea6f8d5c5 @woocommerce/e2e-utils: updated fishery to 1.2
Now that my PR adding support for async creation has been merged we can
remove the AsyncFactory class we were using as a temporary workaround.
2021-01-25 09:33:46 -08:00
Ron Rennick 6134d0ffc8
Merge pull request #28867 from woocommerce/add/e2e-shopper-registered-checkout
E2E: add registered shopper checkout test
2021-01-25 12:52:48 -04:00
Ron Rennick 0eafe83be6 Merge branch 'master' into e2e-shopper-cart-apply-coupon 2021-01-25 12:24:19 -04:00
Ron Rennick 09dedb5520
bump version in E2E packages (#28823)
* bump version in core-tests, utils

* bump api package version, update changelog

* bump e2e-environment to 0.2.0
2021-01-22 14:22:33 +01:00
Leif Singer 7154b61283 move verifyOrder into merchant 2021-01-22 12:44:18 +01:00
Leif Singer 1bafa98a66 move registered customer checkout test to general checkout tests 2021-01-22 11:16:54 +01:00
Leif Singer 197a126aab E2E: add registered shopper checkout test 2021-01-22 11:16:53 +01:00
zhongruige 665cb0b8cf Added tests around product search and editing a product 2021-01-20 16:19:07 -07:00
Ron Rennick baa4bb5da1 merge master 2021-01-19 17:00:10 -04:00
Veljko 521f5d9610 Add new e2e test shopper grouped product 2021-01-19 18:20:04 +01:00
Ron Rennick 10880ae6e1
add admin user E2E config support (#28656)
* add admin user config support

* use merchant.login() is jest setup

* remove customer config from builtin readme

* fix missed merge change

Co-authored-by: Leif Singer <git@singer.sh>
2021-01-19 16:02:08 +01:00
Ron Rennick 10b639510b use api to delete products before e2e tests 2021-01-19 09:49:18 -04:00
Ron Rennick 8721b5d9d9
update core-tests, utils package readmes (#28715) 2021-01-19 14:00:59 +01:00
Claudio Sanches ea54d5ad5f
Merge pull request #28679 from woocommerce/fix/woocommerce-gutenberg-products-block-issues-3565
Show correct WooCommerce pages status if they are using blocks vs shortcode.
2021-01-18 19:26:34 -03:00
Roy Ho 4c548951f4
Merge pull request #28521 from woocommerce/fix/26475
Create additional download permissions on product save if needed
2021-01-18 06:51:57 -08:00
Roy Ho 56e67b1ef8
Merge pull request #28814 from woocommerce/fix/migration/27688
Add migration to fix incorrect product review count.
2021-01-18 06:48:46 -08:00
vedanshujain 2240d3a6e4 Fix typos. 2021-01-18 19:52:20 +05:30
Veljko c7f89fa8df Fix changelog conflict 2021-01-18 14:50:58 +01:00
vedanshujain 1758c2b58c Add tests for #28835 2021-01-18 17:26:19 +05:30
Veljko 00172c5085 Update util changelog 2021-01-15 18:30:05 +01:00
Veljko 0ae2110cd8 Update test to avoid conflict 2021-01-15 18:27:40 +01:00
Ron Rennick 85a03584df
Merge pull request #28665 from woocommerce/e2e-shopper-checkout-apply-coupon
Add new e2e test shopper checkout apply coupon
2021-01-15 13:27:28 -04:00
Ron Rennick 3950f61f8f fix merge conflict 2021-01-15 12:52:00 -04:00
Claudio Sanches e698ed72fd
Merge pull request #28801 from liquidweb/refactor/shipping-zone-read
Refactor the WC_Shipping_Zone_Data_Store::read() method
2021-01-15 12:58:36 -03:00
Veljko V cce8983f14
Update test case to avoid conflict with master 2021-01-15 16:41:26 +01:00
Veljko V 22d7497d6a Fix code to be according to standards 2021-01-14 19:13:16 +01:00
Veljko V cbda8b17bb Update changelog for core tests 2021-01-14 17:30:58 +01:00
Veljko V d569717808 Update scenario of shopper paying his order 2021-01-14 17:19:06 +01:00
Ron Rennick 57d8a00682
Merge pull request #28684 from woocommerce/fix/28682
introduce evalAndClick() E2E utility function
2021-01-14 09:41:10 -04:00
Veljko V 50d601355c Update scenario shopper can pay his order 2021-01-14 14:22:39 +01:00
vedanshujain 2dce182cf8 Add unit tests for review count methods. 2021-01-14 18:31:02 +05:30
Veljko V 98823ba8d0 Add new e2e test case customer can pay for his order 2021-01-14 13:45:12 +01:00
Néstor Soriano b36a06ca08
Merge pull request #27844 from woocommerce/php8/use-custom-phpunit-7
[PHP 8] Use a custom version of PHPUnit 7 for PHP 8 compatibility
2021-01-14 11:46:01 +01:00
Nestor Soriano 8b0bd248d6 Attach hook for adjust_download_permissions from within init_hooks
The DownloadPermissionsAdjuster class hooks to adjust_download_permissions
from within its init method. However this method is executed only
if the class is resolved, otherwise the hooks doesn't get attached
and then the scheduled action is not serviced.

To solve this, the class is resolved from WooCommerce::init_hooks.
This requires a change in DownloadPermissionsAdjuster::init
to use wc_get_container()->get( LegacyProxy::class )->get_instance_of
instead of WC()->get_instance_of, since WC() can't be used from
WooCommerce::construct (which invokes init_hooks).
2021-01-14 11:40:11 +01:00
Veljko V d1150b25dc
Update changelog to include added parameter 2021-01-13 19:34:46 +01:00
Ron Rennick b477cb8d3a
only activate WooCommerce in E2E initialization (#28588)
* only activate WooCommerce in E2E initialization
* use project basename for default plugin path
2021-01-13 12:27:11 +01:00
Nestor Soriano 2ec002defa Add unit tests for DownloadPermissionsAdjuster::adjust_download_permissions 2021-01-13 12:11:15 +01:00
Steve Grunwell e32dd6c4d3 Add a new WC_Shipping_Zone_Data_Store_CPT_Test class to support the refactoring of WC_Shipping_Zone_Data_Store_CPT::read() 2021-01-12 18:26:00 +00:00
budzanowski a283433f4d Add block utils unit tests. 2021-01-12 14:41:55 +01:00
Nestor Soriano 2d83db8b66 Add tests for DownloadPermissionsAdjuster::maybe_schedule_adjust_download_permissions
Also replace direct invocations of functions with usages of the
LegacyProxy whenever needed, and code style ajustments.
2021-01-12 12:07:38 +01:00
Nestor Soriano afe7bdc6b3 Add a test for the added functionality of LegacyProxy. 2021-01-12 10:16:00 +01:00
Veljko V 760a879cb9 Fix white spaces issue 2021-01-11 16:45:31 +01:00
Veljko V 8b85a73977 Fix white spaces issue 2021-01-11 16:40:40 +01:00
Veljko V 633251009b Update test to include lower case method 2021-01-11 16:34:10 +01:00
Veljko V 2e8b6cb0f1 Update test to include lower case method 2021-01-11 16:31:47 +01:00
Veljko 5ceda17664 Update code to be more concise 2021-01-09 18:53:12 +01:00
Veljko 2cf971486e Update code to be more concise 2021-01-09 18:49:59 +01:00
Ron Rennick 20a6e3b2ed merge master 2021-01-08 15:55:59 -04:00
Roy Ho d4849c598c
Merge pull request #28692 from woocommerce/fix/28582
Add protective check to make sure WC()->session is initialized before  loading the data store.
2021-01-08 07:55:35 -08:00
Ron Rennick 5f7b71c543 update readme and package change log 2021-01-08 15:04:47 +01:00
Ron Rennick 96ab0d8d7f include package.json updates 2021-01-08 15:04:47 +01:00