Commit Graph

51227 Commits

Author SHA1 Message Date
Nestor Soriano 33ce695cd2
Merge branch 'trunk' into add/sync_of_deleted_orders 2023-03-24 17:00:29 +01:00
Nestor Soriano 48081b3351
And deletion sync related tests for OrdersTableDataStore.
Also:

- toggle_cot renamed to toggle_cot_feature_and_usage includes
  HPOSToggleTrais for clarity.
- DataSynchronizerTests and OrdersTableDataStoreTests now inherit
  from a common HposTestCase class.
2023-03-24 16:43:56 +01:00
nigeljamesstevenson 59a12a1868
E2e/fix failing daily product variations (#37246) 2023-03-24 15:20:37 +00:00
Ilyas Foo 47587065c9
Fix `possibly_refresh_data_source_pollers` function (#37397)
* Add default value for get_option

* Changelog
2023-03-24 21:07:10 +08:00
Konstantinos Megas 2cd529bcda
fix typos (#37407)
* fix typos

fix typos

* Add changelog

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-03-24 21:05:34 +08:00
Néstor Soriano 2d9b4bdd46
Bump WooCommerce minimum required PHP version to 7.3 and upgrade to PHPUnit 9 (#37366) 2023-03-24 13:42:46 +01:00
Konstantinos Megas 6525bd069d
Fix typos in code comments (#37405) 2023-03-24 09:22:58 +01:00
Niels Lange 3dbf859df3
Replace woocommerce-blocks textdomain in *.json files (#37234)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-03-24 09:21:58 +01:00
Sakri Koskimies 1a058dc12f
Fix rounding difference on refunds with per-line taxes. Closes #30263 (#34641) 2023-03-24 09:09:13 +01:00
Nicholas Hance 6585113636
Update schema for version to match what is sent (#35940)
More specifically, the type of "version" in the "order" object in REST API is now declared as "string" instead of "int".

Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2023-03-24 08:49:53 +01:00
Néstor Soriano 432daa511d
Delete order data from wc_order_tax_lookup and wc_order_stats on order deletion (#36601) 2023-03-24 08:45:54 +01:00
Chi-Hsuan Huang 9cf7ef5a3d
Migrate woocommerce-payments task fills to TS and remove connect.js fill (#37308)
* Migrate woocommerce-payments.js to TS

* Remove tasks/fills/connect.js

* Add changelog

* Remove connect js
2023-03-24 12:26:13 +08:00
Christopher Allford 67cde87fd1
Enforce Strict `@types` Dependencies (#37351) 2023-03-23 18:02:20 -07:00
Jon Lane 9c8249fa46 Fix timeout 2023-03-23 11:42:46 -07:00
Christopher Allford 3d614cd862
Removed TypeScript Incremental Build Support (#37374) 2023-03-23 11:25:42 -07:00
Nathan Silveira 818c0c0a12
Add start command to woocommerce/client/legacy (#37368) 2023-03-23 11:20:20 -07:00
Jon Lane 660b277d4b Complete refactor 2023-03-23 10:35:57 -07:00
Lucas Bustamante ebafecea0f
Reduce flakiness on E2E setup (#37410)
* Reduce flakiness on test setup

* Add changelog

* Go to wp-admin
2023-03-23 09:40:31 -07:00
rodelgc f3366e7dd9
Fix incorrect workflow input for uploading Allure reports on PR merge tests (#37404)
* Fix incorrect input parameter

* Add changelog
2023-03-23 16:29:53 +01:00
Jorge A. Torres 627c2bce01
Synchronize order meta data (between HPOS and CPT stores) (#36593) 2023-03-23 10:03:44 -05:00
Vedanshu Jain 41c2549f20 Remove manual meta handling code since custom meta is synced now. 2023-03-23 08:34:00 -05:00
nigeljamesstevenson 189460417c
Release tests with plugins installed (#37361) 2023-03-23 12:32:30 +00:00
nigeljamesstevenson 76a5b18fa4
fix incorrect variable in api core tests - 37387 (#37388) 2023-03-23 12:26:16 +00:00
nigeljamesstevenson 8806f0d6ee changelog entry 2023-03-23 09:31:40 +00:00
nigeljamesstevenson 0e1f74ae5a update incorrect variable name in api-core-test 2023-03-23 09:26:27 +00:00
Gan Eng Chin 5953362485
Refetch "Installed extensions" card data after installing recommended channels (#37300) 2023-03-23 15:06:08 +08:00
Jorge A. Torres c76a999ae9 Propagate metadata deletion 2023-03-22 21:38:12 -05:00
barryhughes fd3749d5c2 Add assertions covering synchronization of order meta data deletions. 2023-03-22 21:38:12 -05:00
barryhughes e15b942054 Fix typos. 2023-03-22 21:38:12 -05:00
barryhughes ed511dbb76 Synchronize order meta data (between HPOS and CPT stores) upon a call to $order->save_meta_data. 2023-03-22 21:38:12 -05:00
Joshua T Flowers 562749b60a
Prevent duplicate registration of core blocks in client (#37350)
* Prevent duplicate registration of core blocks

* Add components changelog entry
2023-03-22 16:56:35 -07:00
Jon Lane 50852ca9ea Fixed variations test 2023-03-22 10:09:27 -07:00
Nestor Soriano 1468539e5c
Merge branch 'trunk' into bump-required-php-to-7.3 2023-03-22 17:03:07 +01:00
Albert Juhé Lluveras 5a21b3f218
Update WooCommerce Blocks package to 9.8.2 (#37373) 2023-03-22 16:56:41 +01:00
Nestor Soriano 74d0841eaf
Merge branch 'trunk' into bump-required-php-to-7.3 2023-03-22 16:43:50 +01:00
Nestor Soriano b7cd5aa47d
phpunit.xml migrated to the new PHPUnit 9 schema 2023-03-22 16:21:06 +01:00
Nestor Soriano 15c7a18c98
Add changelog file 2023-03-22 13:32:42 +01:00
Nestor Soriano 9137eff39b
Fix tests that throw deprecation warnings in PHPUnit 9.
These fixes include:

- Replace assertRegExp with assertMatchesRegularExpression
- Replace assertObjectHasAttribute and assertClassHasStaticAttribute
  with assertTrue(property_exists)
- Replace assertFileNotExists with assertFileDoesNotExist
- Replace expects(at()) with withConsecutive
2023-03-22 13:23:58 +01:00
Alejandro López Ariza c3994e6f9d
Add workflow to remind PR reviewers to also review the testing instructions. (#36918)
* Add workflow to remind PR reviewers to also review the testing instructions.

* Update review-testing-instructions GitHub Actions workflow to also mentioning teams in the comment.

* Update review-testing-instructions GitHub Actions workflow to find if the comment it posts was already posted and - in that case - update it instead of creating a new one.

* Pin find-comment and create-or-update-comment thirdparty GitHub Actions to full length commit SHA instead of tag for better security.
2023-03-22 12:50:36 +01:00
Nestor Soriano 9bc58b8773
Upgrade PHPUnit to v9, and fix errors in tests.
These errors are due to deprecations in PHPUnit 9, mostly due to the
fact that comparions are now string on assertions:

- Use assertArraySubset instead of arrayContains for checking
  subsets of associative arrays.
- Use assertEqualsWithDelta for comparing floats (thorugh a new
  method in the base tests class, assertFloatEquals)
- Convert ints to strings and viceversa before comparing.
- Use assertArrayHasKey instead of assertContains for checking
  key existence in associative arrays.
- Use assertStringContainsString instead of assertContains for
  checking substrings.
2023-03-22 12:42:43 +01:00
rodelgc ef1f1c3757 Re-enable all tests 2023-03-22 19:38:01 +08:00
rodelgc 524ad3db3e Test artifact upload 2023-03-22 19:12:23 +08:00
Gan Eng Chin 1453351521
Simplify tests for CreateNewCampaignModal. 2023-03-22 18:38:43 +08:00
Gan Eng Chin 59c94ce24a
Fix build errors after merging from trunk. 2023-03-22 18:35:06 +08:00
Joel Thiessen 4ae467af9e
Adding more menu with items using slot fill (#37255)
* Refactored, adding slot fill, basic working via common components

* Pinning plugins dep

* More menu style tweaks

* Fixing merge issues

* Adding product header item slotfill to support more menu modal

* Fixing moved imports

* Adding changelogs

* Adding hover state for more menu toggle btn

* Fixing typo

* Refactoring to use WooHeaderItem instead of adding new slot-fill

* Removing unneeded fragment

* Adding admin layout changelog

* PR feedback

* Fix up lock file after rebase

---------

Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2023-03-22 07:30:06 -03:00
Gan Eng Chin 186f1fb850
Merge branch 'trunk' into feature/37127-marketing-reload-installed-extensions 2023-03-22 18:28:39 +08:00
rodelgc 06da097968 Merge branch 'trunk' into e2e/release-plugins-0 2023-03-22 18:04:42 +08:00
rodelgc 17ae0a489f Remove test filters 2023-03-22 17:45:09 +08:00
nigeljamesstevenson c37080f29f
Add workflow to run API, k6 performance, and E2E tests on trunk after PR merge (#37033) 2023-03-22 09:44:36 +00:00
Gan Eng Chin c0dc416700
Exclude marketing channels in "Installed extensions" and "Discover more marketing tools" cards (#37126) 2023-03-22 17:41:04 +08:00