Roy Ho
9ebf70bf8d
Merge pull request #28646 from tivnet/patch-7
...
abstract_wc_order:add_product() - removed `throws`
2021-01-08 10:24:37 -08:00
Roy Ho
e0be4b0f5c
Merge pull request #28681 from tanvirulhaque/master
...
Fix: Attributes on Edit Product page - "Select all" not working after "Select none" used
2021-01-08 10:09:27 -08: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
d23e4377ab
Merge pull request #28596 from woocommerce/try/wc-scripts
...
Add E2E shorthand script
2021-01-08 10:49:05 -04: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
Ron Rennick
a7014d5496
introduce wc-e2e shorthand script
2021-01-08 15:03:12 +01:00
Ron Rennick
597ec5f9c3
WIP
2021-01-08 15:03:12 +01:00
Nestor Soriano
9d892f0678
Add a section about testing in PHP 8 in tests/README
2021-01-08 09:04:42 +01:00
Ilyas Foo
7f76d91b07
Delete transient before action to prevent race condition
2021-01-08 16:03:38 +08:00
Veljko
8111c4f410
Improve test case and components
2021-01-07 23:39:12 +01:00
Roy Ho
7ec422aad6
Merge pull request #28740 from sorensd/master
...
Updated the state name 'OR' in 'IN' Array
2021-01-07 08:24:22 -08:00
raicem
f0166fcc56
Fix indentation errors as per WordPress code style guides
2021-01-07 15:14:38 +03:00
Vedanshu Jain
e74bc15103
Merge pull request #28745 from woocommerce/fix/28741
...
Revert order and product controllers to use WP Post queries directly.
2021-01-07 17:37:25 +05:30
vedanshujain
f8bcf6271d
Revert order and product controllers to use WP Post queries directly.
...
This commit revert some of the changes added in #27735 because wc_get_products and wc_get_orders is not fully compitable with API controller queries. Since we are close to release 4.9, its better to revert and fix them properly then rush a fix. This undones some the performance improvements we acheived in 27735, in favor of more stability, hopefully we will be able to restore this soon.
2021-01-07 16:47:54 +05:30
Soren Singh Dary
fbedeeac44
Updated states.php
...
Updated state name Orissa to Odisha, refer: https://en.wikipedia.org/wiki/Odisha#Etymology
2021-01-07 05:07:29 +05:30
Rodrigo Primo
007f3ec8aa
Merge pull request #28706 from paulochang/patch-1
...
Remove post code from Guatemala
2021-01-06 17:58:23 -03:00
Soren Singh Dary
b7f863dc02
Updated the state name of 'OR' from India
...
Updated the state name of Odisha (previously Orissa) 'IN' array. Cite: https://en.wikipedia.org/wiki/Odisha#Etymology
2021-01-07 01:02:31 +05:30
Ron Rennick
6d402c96c8
Merge pull request #28017 from woocommerce/fix/25643
...
Fix E2E variable product test
2021-01-06 14:39:19 -04:00
Ron Rennick
7959ba3d16
Merge pull request #28045 from woocommerce/fix/28012
...
add support for custom E2E container name
2021-01-06 13:52:42 -04:00
Veljko V
79904279fa
Update components and test to be more concise
2021-01-06 17:08:29 +01:00
Peter Fabian
7640c7f1bd
Merge pull request #28731 from woocommerce/fix/28729
...
Restore stock_status in V3 response.
2021-01-06 14:25:09 +01:00
vedanshujain
27b22d3aaa
Move the logic to set stock_status from V2 to V3.
2021-01-06 17:55:56 +05:30
Vedanshu Jain
e989b7cb03
Merge pull request #28728 from woocommerce/update/wc-admin-1.8.3
...
Bump wc-admin to 1.8.3
2021-01-06 16:30:25 +05:30
vedanshujain
1c774a0494
Create composer.lock with composer 2.0.
2021-01-06 16:28:32 +05:30
vedanshujain
b0cc43a188
More for individual fields in responses for V2 and V3 products and orders endpoints.
2021-01-06 16:04:56 +05:30
vedanshujain
e546c237b7
Add tests for checking all fields are returned even requested individually.
2021-01-06 15:12:55 +05:30
vedanshujain
2ae6c5b543
Also fetch dependencies for fields which are computed from other fields.
2021-01-06 15:09:50 +05:30
vedanshujain
1fdc24daa9
Add unit test for verifying that all expected fields are present.
2021-01-06 14:19:26 +05:30
vedanshujain
0d43aecebd
Also fetch in_stock when stock_status requested in V2.
...
When called from V3, controller calls V2s get_product_data method, where stock_status was did not existed and was renamed. In V3 controller, we compute it based on V2 in_stock field.
2021-01-06 14:14:59 +05:30
Joel Thiessen
509d45abb3
Bump wc-admin to 1.8.3
2021-01-05 16:23:21 -08:00
Veljko V
d3169dcf43
Remove unnecessary code
2021-01-05 22:24:03 +01:00
Roy Ho
c6f6d04c2e
Merge pull request #28558 from tyrann0us/patch-2
...
Invert “if” statement to reduce nesting
2021-01-05 12:02:01 -08:00
jonathansadowski
1e267980e8
Merge pull request #28723 from woocommerce/feature/issue-27208
...
Feature/issue 27208
2021-01-05 14:00:55 -06:00
Ron Rennick
b3b73e069a
merge upstream
2021-01-05 14:56:27 -04:00
Ron Rennick
35e490e631
restore accidental readme deletion
2021-01-05 14:52:29 -04:00
Nestor Soriano
f4a1f12824
Fix code sniffer errors
2021-01-05 17:23:23 +01:00
roykho
b25f01d2f3
Add unit tests
2021-01-05 08:14:39 -08:00
Nestor Soriano
f284ae8af3
Fix end of line handling for PHP 8 in WC_Tests_Log_Handler_Email
...
In PHP 7 the mail function generates PHP-style end of lines (\n),
and that's what these unit tests were assuming; in PHP 8 however
the proper network-style end of lines (\r\n) are generated.
This commit fixes the tests to be compatible with both styles.
2021-01-05 16:04:30 +01:00
Nestor Soriano
1d0b6b7cd9
Fix wc_ascii_uasort_comparison for PHP 8
...
In PHP 8 "iconv( 'UTF-8', 'ASCII//TRANSLIT')" doesn't work as expected:
instead of returning a proper substitute for non-ASCII characters
it returns "?". Temporarily changing the locale to C.UTF-8
fixes the issue.
2021-01-05 15:54:49 +01:00
raicem
7b67977a31
Reduce "wc_addons_featured" transient cache duration
...
The featured extension list was static but now it's fetched from
WooCommerce.com and may change more frequently. Reducing the
cache duration to allow users to see changes much more quickly.
2021-01-05 17:45:34 +03:00
raicem
c70eee2a0a
Send auth token when sending search and featured extension requests
2021-01-05 17:40:58 +03:00
Leif Singer
62d5e9a0bc
fix an overlooked merge conflict resolution issue
2021-01-05 15:06:51 +01:00
Ron Rennick
3076e1e50f
disable setting variation fields in variable product test
2021-01-05 13:24:51 +01:00
Ron Rennick
120fc00f82
use waitAndClick, waitForSelector where applicable
2021-01-05 13:24:51 +01:00
Ron Rennick
7a03688006
variation test works to last uncommented step
2021-01-05 13:24:51 +01:00
Ron Rennick
923bf28d44
use checkbox object for checking/unchecking
2021-01-05 13:19:49 +01:00
Ron Rennick
eca159ecab
phpcs fixes, on sale dates should be displayed in local time
2021-01-05 13:19:49 +01:00
Ron Rennick
0d2a5ac5e9
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
2021-01-05 13:19:49 +01:00
Vedanshu Jain
7d4cf1b8bf
Merge pull request #28677 from woocommerce/fix/request-request-arg-api
...
Add protection around `func_get_arg` method for backward compatibility.
2021-01-05 17:45:31 +05:30