Commit Graph

51379 Commits

Author SHA1 Message Date
Vedanshu Jain 4f4d42b9ef Add changelog. 2023-02-27 18:47:54 +05:30
Vedanshu Jain a9280ff5d8 Merge branch 'fix/36681' into fix/36680 2023-02-27 18:46:59 +05:30
Vedanshu Jain 5c1d1d78d2 Add changelog. 2023-02-27 18:25:01 +05:30
Vedanshu Jain 9e23ee2675 Merge branch 'fix/36682' into fix/36681 2023-02-27 18:21:14 +05:30
Vedanshu Jain 1736911bfa Applied coding standards. 2023-02-27 17:42:47 +05:30
Vedanshu Jain f5ac18f11c Add changelog. 2023-02-27 17:27:32 +05:30
Vedanshu Jain ca14a921db Merge branch 'fix/36684' into fix/36682 2023-02-27 17:24:53 +05:30
Vedanshu Jain 04642b8bd4 Apply coding standards 2023-02-27 17:22:44 +05:30
Vedanshu Jain 648d801da2 Added changelog. 2023-02-27 17:08:38 +05:30
Vedanshu Jain ef74ccd496 Use posts before delete hook along with HPOS one. 2023-02-27 17:07:59 +05:30
Vedanshu Jain 8369487847 Apply coding standards. 2023-02-27 16:43:25 +05:30
Vedanshu Jain b286c50ebd Merge branch 'fix/36685' into fix/36684 2023-02-27 16:29:26 +05:30
Vedanshu Jain 46f6eb3d5f Removed typo. 2023-02-27 14:56:43 +05:30
Vedanshu Jain 01114fc5d9 Toggle COT appropriately for COT tests. 2023-02-27 14:50:14 +05:30
Nestor Soriano be43265761
Fix GET coupons request and apply_coupon 2023-02-27 10:15:56 +01:00
Ron Rennick a45f9c4f55
Fix k6 baseline load imports (#36940)
* add wpLogin import to wc-baseline-load.js

* add changelog

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-02-27 16:42:10 +08:00
Nestor Soriano f56010334d
Remove unnecessary 'use's 2023-02-27 09:28:15 +01:00
Vedanshu Jain 8da07f73e7 Fetch order first to refresh cache before returning prop. 2023-02-27 13:48:59 +05:30
Vedanshu Jain cf46233b35 Merge branch 'fix/36686' into fix/36685 2023-02-27 13:20:57 +05:30
Corey McKrill 3f0405970d
Product Importer: Ensure all products in the file get processed (#36839) 2023-02-27 08:47:31 +01:00
Vedanshu Jain 212884e417 Merge branch 'hpos/unit-tests' into fix/36686 2023-02-27 12:50:25 +05:30
rodelgc ea1925c841
Enable "Smoke test release" workflow (#36598)
* First pass at updating release test workflow

* Add changelog

* Set dir env variables

* Update to workflow

* Fix indent

* Fix indent

* Clean up indent

* Re-order steps

* Change order of jobs

* Added common php versions

* Update pipeline

* Update some labels

* Simplify for testing

* Update paths

* Create tmp folder

* Fix path

* Paths

* Try outputting some debugging

* Add step ID back

* Remove working directory

* Another path tweak

* Add API release tests

* Add k6 tests

* Add PHP tests

* Launch wp-env during PHP tests

* Try default values

* Tweak some settings, add WP testing

* Tweak some settings

* Re-order e2e steps

* Update step descriptions

* Reorganize tests, add plugin tests

* Enable only e2e job

* Initial set up to run against release smoke test site

* Fix syntax

* Temporarily disable update wc spec

* Temporarily disable downloading woocommerce zip

* Download release zip using tag name

* Fix wrong job name

* Fix wrong job name

* Fix dir

* Delete fetch-asset-id.js

* REfactor update-woocommerce spec

* Add error handling

* Download release zip by tag

* Refactor update woo spec to download zip by tag

* Correct job name

* fail test on invalid tag

* Enable all e2e tests

* Run api tests before e2e tests

* Fix job dependency

* Add customer credentials to api job

* Separate job for WC Update

* Combine e2e allure-results, then report

* Enable report job

* Fix context

* Change job and artifact names

* Use test s3 path

* Minor job name change

* Upload artifacts to bucket

* Correct s3 path

* Add quiet option

* Retain video on failures

* Finalize s3 path

* Try WP latest-1

* Revert to wp latest

* Refine search for woocommerce zip asset

* Get created-at

* Specify repo in gh command

* Slugify env description

* Trim space

* Sync with bucket instead of copy

* Remove invalid --recursive flag

* Re-add missing step to combine e2e results from update wc test

* Ensure artifact upload on test failure

* Enable all e2e tests on WP latest

* Retain existing data before updating WC

* Make test compatible with 'Canceled' and 'Cancelled'

* Set env_desc as env var

* Re-add deleted file

* Fix UPDATE_WC in daily smoke test workflow

* Add tracing in global setup

* Remove tracing

* Temporarily run only basic spec

* Job for WP Latest-1 & 2

* Fix "Required input 'created_at' not provided"

* Minor rename

* Remove install filter

* Install deps in get-wp-matrix

* Delete get-wp-versions.js

* Add get-wp-versions.js to e2e-pw folder

* REname file

* REfactor

* Refactor script for getting WP prev versions

* Update job dependencies

* Temporarily remove disabled jobs

* Allow e2e-wp-latest after api test failure

* Update L-1 & L-2 job deps

* Fix report-wp-latest

* Fix failing api test

* Make get-wp-versions quicker

* Publish report immediately after test

* Test reporting in e2e-update-wc

* Fix missing parameter

* Fix env_desc, re-enable other jobs

* Enable all e2e tests

* Minor job name change

* Fix flaky test

* Add php version testing

* stringify php versions

* Re-enable all e2e tests

* Up timeout to 2min

* Remove PHP 8.0

* Add missing conditionals

* Fix php version verification script

* Fix starting dir

* Fix flakiness

* Skip e2e if api failed

* Verify woocommerce.zip early

* Add token

* Delete test summary on github for the meantime

* Use default playwright config

* More meaningful variable names

* Update step titles based on review

* Use expect.poll()

* Minor spacing corrections

* Use `stable-check` endpoint, delete unnecessary loop

* Update locators to be JN-compatible

* Fix erroneous getting of release tag

* Fix conflict of "No thanks" button locator with that of WP Mail Logging's

* Update github-script action to v6

* Revert to 'Cancelled'

* Remove unnecessary step

* Provide missing env variables

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
Co-authored-by: Jonathan Lane <lanej0@users.noreply.github.com>
2023-02-27 12:11:46 +08:00
Gan Eng Chin e57181b987
Add tests for Campaigns component. 2023-02-27 02:23:11 +08:00
Maikel David Pérez Gómez e5d8b61373
Add custom rendering logic to the item label (#36476)
* Add type definitions

* Add custom rendering logic to the item label

* Add stories

* Add changelog file

* Fix rebase merge issue

* Fix up stories after rebase

---------

Co-authored-by: Matt Sherman <matt@jam123.com>
2023-02-24 17:00:32 -03:00
Barry Hughes af7c3f380d
Add a string encoding selector to the product importer (#36819) 2023-02-24 09:08:26 -08:00
Gan Eng Chin 3513ef51a1
Merge branch 'trunk' into feature/34905-marketing-campaigns-card 2023-02-25 00:39:37 +08:00
Barry Hughes 6cd66c5692
Merge branch 'trunk' into add/encoding-selector-to-product-importer 2023-02-24 08:13:15 -08:00
Gan Eng Chin f62b44ae2f
Set numberOfRows for TablePlaceholder in Campaigns card. 2023-02-24 23:48:04 +08:00
Gan Eng Chin f7a1ef2123
Code refactor with getTotalFromResponse in getCampaigns. 2023-02-24 23:45:10 +08:00
Gan Eng Chin a4e11924fd
Change meta.total to optional in receiveCampaignsSuccess. 2023-02-24 23:44:47 +08:00
Néstor Soriano 00b8a8e76c
Merge branch 'trunk' into fix/load-theme-specific-stylesheet-in-site-editor 2023-02-24 16:35:55 +01:00
Gan Eng Chin f5ba6d94ac
Remove unused fetchWithHeaders control. 2023-02-24 23:35:40 +08:00
Barry Hughes 7f5b65b519
Add woocommerce_attributes_saved trigger. Closes #35004. (#36943) 2023-02-24 07:20:16 -08:00
barryhughes c8074a79e5 Add changelog 2023-02-24 06:35:56 -08:00
barryhughes b772e9a995 Merge branch 'trunk' into issues/35004-attributes-saved-trigger 2023-02-24 06:31:31 -08:00
Néstor Soriano 89ec0bc083
Change SORT_STRING to SORT_NATURAL for the encodings list
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-02-24 14:59:08 +01:00
louwie17 aec4dfd3bd
Update product editor package (#36830)
* Add missing dev packages to product-editor package

* Create components folder for organization

* Move product field, section and tab slots over to product-editor package

* Move use of product slot fills to product-editor package

* Sync dependencies

* Add changelogs

* Update README's and add constant for default values

* Update README's in product-editor package
2023-02-24 09:37:53 -04:00
Vedanshu Jain 7f140c77ca Use latest WP version. 2023-02-24 17:02:36 +05:30
Vedanshu Jain 86e5f13180 Modify name to reflet HPOS tests + use latest WP.. 2023-02-24 17:02:05 +05:30
Vedanshu Jain 5c2ccb563b Run HPOS test in a matrix along with post tests. 2023-02-24 16:57:51 +05:30
Nestor Soriano 575146615a
Fix: can't apply or remove a coupon whose code is "0" via REST api
Also fix: coupon usage not incremented for coupon with code "0"
2023-02-24 11:57:23 +01:00
Gan Eng Chin a982b7be21
Error handling in getCampaigns. 2023-02-24 18:32:33 +08:00
Vedanshu Jain 87da68c377 Use correct data store for getter/setters. 2023-02-24 15:03:54 +05:30
Vedanshu Jain a3a41356ee Sanitize value before returning. 2023-02-24 15:03:48 +05:30
Vedanshu Jain f8b6258c92 Set correct datastore for tests. 2023-02-24 15:03:41 +05:30
Vedanshu Jain 5e7052b03d Use correct data store for getter/setters. 2023-02-24 15:02:01 +05:30
Vedanshu Jain 7fbd736517 Sanitize value before returning. 2023-02-24 15:01:38 +05:30
Gan Eng Chin 92762ca9b0
Better pagination with TablePlaceholder in Campaigns card. 2023-02-24 17:09:42 +08:00
Vedanshu Jain 2d3f38851c Set correct datastore for tests. 2023-02-24 14:37:35 +05:30
Vedanshu Jain 2362d7785a Add HPOS support to admin orders API. 2023-02-24 14:04:35 +05:30