Commit Graph

38800 Commits

Author SHA1 Message Date
Greg d496e8e3db
Merge pull request #29623 from woocommerce/e2e/28485-resets
[WIP] Reset a test site
2021-04-14 16:09:09 -06:00
jonathansadowski 193202db2b
Merge pull request #29684 from woocommerce/revert-29586-masteradhoc-portugal-states
Revert "add portugal states"
2021-04-14 15:31:56 -05:00
Claudio Sanches 7296cb66d4
Revert "add portugal states" 2021-04-14 16:27:19 -03:00
Claudio Sanches b07f41d598
Merge pull request #29572 from woocommerce/update/debug-logging-filter
Enhance woocommerce_logger_log_message filter
2021-04-14 16:20:37 -03:00
Ron Rennick a1ec304f44 add waits for idle in add product to order 2021-04-14 16:09:23 -03:00
roykho 427be84875
Add unit tests 2021-04-14 11:54:13 -07:00
Joshua Flowers d37a31927e Update composer.lock 2021-04-14 13:10:35 -04:00
Joshua Flowers 1d4368f384 Bump WooCommerce Admin version to 2.2.1 2021-04-14 13:09:49 -04:00
Joshua Flowers 63dbdddf64 Update to rc1 2021-04-14 13:09:19 -04:00
Joshua Flowers fc5499f9b8 Bump WooCommerce Admin version to 2.2.0-beta.2 2021-04-14 13:08:44 -04:00
Greg 8c86f85af7
Merge pull request #29650 from woocommerce/fix/wcq-34
Enable the stalebot
2021-04-14 11:06:26 -06:00
roykho 0bb3180d68
Schedule cron jobs for running the assign default cat function 2021-04-14 06:52:39 -07:00
Ron Rennick 2c13c994b2 add screenshot utility 2021-04-14 10:05:03 -03:00
Veljko V 2b82c60107
Merge branch 'trunk' into e2e/e2e-shopper-calculate-shipping 2021-04-14 10:21:56 +02:00
roykho 6ed847a7b9
Deprecate method instead of removing it 2021-04-13 19:53:00 -07:00
roykho 8663c3b5f9
Assign default category to products closes #29540 2021-04-13 19:43:04 -07:00
Caleb Burks 0916dd3246 Update docblock 2021-04-13 17:21:00 -05:00
Greg baae57baf5
Merge pull request #29652 from woocommerce/fix/slackbot-instructions
Add step to slackbot instructions
2021-04-13 14:49:40 -06:00
Greg d06bb5b1e6
Merge pull request #29592 from woocommerce/e2e/e2e-shopper-cart-redirection
Add new e2e test shopper cart redirection
2021-04-13 14:40:39 -06:00
Albert Juhé Lluveras aea8e1655f Update WooCommerce Blocks package to 4.9.1 2021-04-13 20:06:33 +02:00
Néstor Soriano 27fd6306f9
Merge pull request #29661 from woocommerce/preparation/5.2.1
Release preparation: 5.2.1
2021-04-13 19:37:04 +02:00
Nestor Soriano 14d399178a
Update changelog and readme for 5.2.1, change stable tag to 5.2.1 2021-04-13 19:21:57 +02:00
Néstor Soriano 9968f394ad
Merge pull request #29660 from woocommerce/update/blocks-to-4.7.2-take-2
Update WooCommerce Blocks package to 4.7.2
2021-04-13 19:17:36 +02:00
Nestor Soriano 132770b8d9
Update Blocks package to version 4.7.2 2021-04-13 19:02:45 +02:00
Ron Rennick 07f72c80b4
fix spacing
Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>
2021-04-13 08:25:22 -03:00
Nestor Soriano cf9300bbbc
Refactor in the WC_Settings_Page class for PHP 8 compatibility
- Turn get_settings into a parameterless method, but accept one
  parameter via func_get_arg; and mark the method as deprecated.
- Rename the existing get_settings to get_settings_for_section;
  and mark the method as final.
- Rename the existing get_settings_for_section to get_settings_for_section_core.

See the comment added to get_settings for the rationale for the change.
2021-04-13 12:45:42 +02:00
Tam Mullen ea30866687
Merge pull request #29468 from woocommerce/e2e/e2e-merchant-orders-add-order-complex
E2e/e2e merchant orders add order complex
2021-04-13 10:16:50 +01:00
Nestor Soriano 5af12170d7
Make the WC_Settings_Page::get_settings_for_section final
This helps on conveying the notion that the method to be overriden
is get_settings_for_section_core instead (or get_settings_for_X_section
methods must be added).
2021-04-13 09:31:50 +02:00
Veljko V d9f6f40ac9
Merge branch 'trunk' into e2e/e2e-shopper-cart-redirection 2021-04-13 09:24:25 +02:00
Veljko V d8ff7c02b8
Merge branch 'trunk' into e2e/e2e-shopper-calculate-shipping 2021-04-13 09:23:18 +02:00
rodel-calasagsag a094b185d3 Removed unused faker dependency 2021-04-12 22:52:54 -07:00
Caleb Burks b47cd85af0 Add docblock 2021-04-12 18:56:23 -05:00
roykho ded5c9c7c4
Update unit tests to reflect new base address 2021-04-12 14:13:27 -07:00
Ron Rennick 4480e110f4 update core tests & utils readmes 2021-04-12 14:33:00 -03:00
Ron Rennick a88bc666de enable smoke test 2021-04-12 13:32:38 -03:00
roykho 6c7c420d25
Set US:CA as the default store location 2021-04-12 09:28:30 -07:00
Ron Rennick 96000d81d0 add step to slackbot instructions 2021-04-12 13:19:34 -03:00
Nestor Soriano 56cc063d7f
Rename "get_settings" to "get_settings_for_section" in settings pages.
In PHP 8 overriding a method having an optional parameter with a
method having no parameters throws an error, thus we can't use
the strategy of changing "get_settings()" to "get_settings($section='')"
without breaking existing extensions. So we do the following instead:

- Rename the existing "get_settings" to "get_settings_for_section"
- Rename the existing "get_settings_for_section" to "get_settings_for_section_core"
- Add a "get_settings" that just does "get_settings_for_section('')"
  for compatibility, but mark it as deprecated.
2021-04-12 18:04:41 +02:00
Nestor Soriano ca46992c00
Adjustments in settings pages after a merge with conflicts. 2021-04-12 15:55:45 +02:00
Ron Rennick cea88305a7 enable stalebot 2021-04-12 10:55:30 -03:00
Ron Rennick 5f1e9c2ce5
Merge pull request #29527 from woocommerce/dependabot/npm_and_yarn/tests/e2e/api/y18n-4.0.1
Bump y18n from 4.0.0 to 4.0.1 in /tests/e2e/api
2021-04-12 10:48:08 -03:00
Ron Rennick d950a3298e
Merge pull request #29467 from woocommerce/e2e/e2e-merchant-settings-add-shipping-classes
E2e/e2e merchant settings add shipping classes
2021-04-12 10:45:25 -03:00
Claudio Sanches a761e78a84
Fixed unit tests 2021-04-12 12:50:21 +02:00
Claudio Sanches e2e914ed39
Remove todo 2021-04-12 12:50:21 +02:00
Claudio Sanches 1f51e0c9fc
Remove "Features" menu 2021-04-12 12:50:21 +02:00
Nestor Soriano 65c1c9ec54
Fix unit tests after merging from trunk 2021-04-12 12:50:21 +02:00
Nestor Soriano d820fbe4a7
Fix wrong handling of the shipping - shipping options section. 2021-04-12 12:42:40 +02:00
Nestor Soriano e5f234ec0f
Re-implement the flushing of the term count cache that was lost on merge
Also add unit tests for it.
2021-04-12 12:42:39 +02:00
Nestor Soriano 8a60e7e147
Move code hacker resetting from BeforeTestHook to setUp
The code hacker needs to be reset before each test. This was done via
a couple of classes implementeing BeforeTestHook, those were registered
in phpunit.xml.

The problem is that the PHPUnit version used for WooCommerce unit test
has recently been changed from 7.5 to 6.5 for compatibility with
PHP 7.0, and hook classes were introduced in PHPUnit 7. Thus no hooks
were ran, the code hacker wasn't reset, that caused some functions
to remain hacked between tests, and this made some tests to fail.

The solution is to move the code hacker reset to the setUp method
in the base unit test class.
2021-04-12 12:42:39 +02:00
Nestor Soriano 7440e95b72
Fix unit tests after merge from master 2021-04-12 12:42:39 +02:00