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
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
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
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
Ron Rennick
18565bf8ee
First pass at separating product properties into groups
2021-02-12 15:29:22 -04: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
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
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
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
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
Nestor Soriano
e82ab487b6
validate_posted_data: check if we actually need to validate the shipping country.
2021-02-10 10:05:24 +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
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
Ron Rennick
8fde150ba9
update built-in readme with shorthand script
2021-02-04 15:52:18 -04:00
Ron Rennick
371f2c31a6
update missed StoreOwner/CustomerFlows in docs, improve readability of some sections
2021-02-04 15:45:57 -04:00
Veljko
ff71de8578
Fix spaces and split tests
2021-02-03 13:13:28 +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
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
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
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
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
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
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
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
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
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
Ron Rennick
57d8a00682
Merge pull request #28684 from woocommerce/fix/28682
...
introduce evalAndClick() E2E utility function
2021-01-14 09:41:10 -04:00
vedanshujain
2dce182cf8
Add unit tests for review count methods.
2021-01-14 18:31:02 +05:30
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