Commit Graph

51346 Commits

Author SHA1 Message Date
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
rodelgc 5f8aa3671c Merge branch 'trunk' into e2e/release-plugins-0 2023-03-22 17:29:08 +08:00
Gan Eng Chin 76379770a1
Fix hook file name with correct casing. 2023-03-22 16:51:25 +08:00
Gan Eng Chin 1f7a8120a3
Temporary rename file to fix casing issue. 2023-03-22 16:50:27 +08:00
Gan Eng Chin 3189f2b7f5
Reorganize code. 2023-03-22 16:44:44 +08:00
Gan Eng Chin 01492520d3
Fix JSDOC comment in UseRecommendedPluginsWithoutChannels. 2023-03-22 16:38:21 +08:00
Gan Eng Chin 5e6cd11028
Simplify naming in PluginsTabPanel. 2023-03-22 16:09:40 +08:00
Gan Eng Chin b18e1705cd
Fix and simplify mocks in DiscoverTools tests. 2023-03-22 16:07:51 +08:00
Gan Eng Chin 7395d6939c
Fix file name for useInstalledPluginsWithoutChannels. 2023-03-22 15:59:37 +08:00
Joel Thiessen b8416d7948
Replacing multiple components on the product page with a single hook. (#37283)
* Replacing multiple componments on the product page with a single hook.

* Adding changelog

* Removed the conditional hook logic, because of React rule - Don’t call Hooks inside loops, conditions, or nested functions.

* Use promise for receiving entity, and reload template on product change

* Add changelog

---------

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2023-03-22 04:48:55 -03:00
Chi-Hsuan Huang 688c5e97ff
Revert "Add missing woocommerce_run_on_woocommerce_admin_updated hook for RemoteInboxNotificationsEngine scheduled action" (#37354)
* Revert "Add missing woocommerce_run_on_woocommerce_admin_updated hook for RemoteInboxNotificationsEngine scheduled action (#36768)"

This reverts commit b114426042.

* Add changelog

* Fix lint
2023-03-22 12:55:59 +08:00
Vedanshu Jain eb297c00c9
Overwrite clone method to prevent duplicate data when saving a clone. (#37313)
* Add unit test to simulate duplicate meta insert.

* Overwrite clone method to prevent duplicate datq when saving a clone.

* Add changelog.

* Coding standard fixes.

* Fix phpcs

---------

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2023-03-21 18:23:57 -05:00
Jonathan Lane 0eacfc31cf
Merge branch 'trunk' into e2e/fix-failing-daily-product-variations 2023-03-21 16:11:56 -07:00
jonathansadowski 2e8b7921e3
Update stable tag to 7.5.1 (#37344)
* Update stable tag to 7.5.1

* Create change file
2023-03-21 15:52:20 -05:00
github-actions[bot] e987737195
Update changelog.txt from release 7.5.1 (#37341)
Prep trunk post release 7.5.1

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-03-21 15:31:11 -05:00
Fernando Marichal 8e08139881
Set quantity value when stock tracking is enabled (#37304)
* Set default quantity value

* Rename `Stock quantity` to `Quantity`

* Add changelog

* Fix original stock

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-03-21 16:55:56 -03:00
Matt Sherman bfb59715bc
e2e: Remove explicit timeouts for variable products and analytics tests (#37335)
* Improve filling out attribute input fields

* Improve waiting for attributes to be saved

* Improve waiting for Analytics overview settings to be saved
2023-03-21 15:41:15 -04:00
Nestor Soriano 735e66a24b
Remove the admin notice about the upcoming PHP 7.3 requirement 2023-03-21 16:59:14 +01:00
Matt Sherman b27f6023f8
Move remaining CES-related components to @woocommerce/customer-effort-score (#37316)
* Add @woocommerce/tracks to dev dependencies
* Move remaining CES-related components to @woocommerce/customer-effort-score
* Update imports in woocommerce/client/admin
2023-03-21 11:58:35 -04:00
Nestor Soriano dd2f6f4c13
Bump WooCommerce minimum required PHP version to 7.3
This includes:

- Changing "Requires PHP" in woocommerce.php
- Changing "require-php" and "config-platform-php" in composer.json
- Changing "testVersion" in phpcs.xml
- Updating the composer.lock file with more modern versions
  of some of the dependencies
2023-03-21 16:56:34 +01:00
Maikel David Pérez Gómez 62ca7a266b
Add the summary field to the product form (#37302)
* Add summary block

* Add changelog files

* Add text alignment

* Add RTL and type definitions

* Add justify text alignment

* Fix rebasing errors
2023-03-21 12:34:24 -03:00
Gan Eng Chin e281c09bc6
Merge branch 'trunk' into feature/34907-marketing-exclude-channels
Conflicts:
	plugins/woocommerce-admin/client/marketing/hooks/index.ts
2023-03-21 23:33:41 +08:00
Gan Eng Chin 637fca8df5
Rename file UseInstalledPlugins to UseInstalledPluginsWithoutChannels. 2023-03-21 23:23:39 +08:00
Gan Eng Chin 648eab74eb
Change namings in useInstalledExtensions to useInstalledPluginsWithoutChannels. 2023-03-21 23:22:39 +08:00
Michael Pretty d9e049d074 adding missing docblocks for tests 2023-03-21 11:05:39 -04:00
Michael Pretty 2db2e720c9 Correcting quoting style for non-dynamic strings in tests 2023-03-21 10:55:08 -04:00
github-actions[bot] f899b43d91
Prep trunk for 7.7 cycle (#37324)
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-03-21 15:48:18 +01:00
Michael Pretty 6c9cfaa793 Add unit tests for update-functions. 2023-03-21 10:46:49 -04:00
Sam Seay 52bc1879bb
Allow composing code analyzer change detections (hooks, templates, db, schema) (#37161)
* Add granular command for scanning individual change types.

* documentation and clean up

* Refactor the API to be more intuitive and memorable.

* Update the documentation.

* Update tools/code-analyzer/src/commands/analyzer/analyzer-scan.ts

Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>

---------

Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>
2023-03-21 09:36:30 -05:00
Gan Eng Chin fab90dc712
Fix incorrect data while loading in useRecommendedPlugins.
See the incorrect data issue in https://github.com/woocommerce/woocommerce/pull/37126#discussion_r1141936304.
2023-03-21 22:28:05 +08:00
github-actions[bot] 45123fcc96
Release: Remove 7.6 change files (#37322)
Delete changelog files from 7.6 release

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-03-21 15:17:31 +01:00
nigeljamesstevenson e4eb7904fb
Add Liberia as store location for e2e test (#37323) 2023-03-21 14:14:15 +00:00
Gan Eng Chin e4a8d17ed3
Rename file useRecommendedPlugins to useRecommendedPluginsWithoutChannels. 2023-03-21 21:13:19 +08:00
Gan Eng Chin b129dd5173
Change namings and add docs in useRecommendedPlugins. 2023-03-21 21:12:00 +08:00
Gan Eng Chin c6bcf9fa67
Fix incorrect data while loading in useRecommendedPlugins.
See the incorrect data issue in https://github.com/woocommerce/woocommerce/pull/37126#discussion_r1141936304.
2023-03-21 19:30:24 +08:00
Gan Eng Chin fe4e28d511
Rename UseInstalledPlugins to UseInstalledExtensions.
Also change related names from "plugin" to "extension".
2023-03-21 19:08:13 +08:00