Commit Graph

394 Commits

Author SHA1 Message Date
Tomek Wytrębowicz b03b1184ac Fix returned type of `numberFormat`.
`locutus/php/strings/number_format` seems to always return a `String`.

Redo baa0c5d2b4.
2022-03-22 20:56:07 +01:00
Tomek Wytrębowicz 0b959cfc70 Update `formatValue` docs, explain "based on type",
Fix the returned value's type.

Redo 5d7d53f01a.
2022-03-22 20:55:03 +01:00
Tomek Wytrębowicz 6013099e7f Define NumberConfig data type, export type declarations.
Redo 8cdc828b37.
2022-03-22 20:52:30 +01:00
Chi-Hsuan Huang 0530ee122c Fix explat assignment-test.js for node >= 16 2022-03-22 11:24:59 +08:00
Chi-Hsuan Huang 24595bd2cb Fix jest config paths 2022-03-21 18:28:05 +08:00
Christopher Allford 3dd60322d5 Migrated WooCommerce Admin PHP Code
This commit moves all of the PHP code from `plugins/woocommerce-admin`
to its new home in `plugins/woocommerce`.

- `plugins/woocommerce-admin/src` -> `plugins/woocommerce/src/Admin`
- `plugins/woocommerce-admin/src-internal` -> `plugins/woocommerce/src/Internal`
- `plugins/woocommerce-admin/includes` -> `plugins/woocommerce/includes/react-admin`
2022-03-18 15:23:33 -07:00
Christopher Allford 93e44b3628 Updated React Admin Build Output
This changes the output of the React-based
admin client from WooCommerce Admin to
an appropriate location in the core plugin.
2022-03-18 14:53:25 -07:00
Christopher Allford d2d8d78be1 Moved WCA Packages
This commit moves all of the packages in
`plugins/woocommerce-admin/packages` to their
new home in `packages/js`.
2022-03-18 14:25:26 -07:00
Jorge A. Torres ca7bedd249
Merge pull request #31987 from woocommerce/fix/internal-links-in-readmes
Fix internal links in README files
2022-03-15 15:38:46 -05:00
Nestor Soriano 904ec4343c
Fix misc links in READMEs and GitHub templates. 2022-03-15 16:01:12 +01:00
Lucas Bustamante 31fae36caa Update XPath syntax 2022-02-28 17:41:00 -03:00
Lucas Bustamante c90e11ea3d Refactor merchant logout 2022-02-28 17:09:19 -03:00
Alejandro López Ariza 5af5be5100
Added new tests to wp-admin-order-edit.test.js for covering merchant management actions over downloadable products. (#31650)
* Added new tests to wp-admin-order-edit.test.js for covering merchant management actions over downloadable products.

* Updated changelogs from e2e-utils and e2e-core packages.

* - Fixed minor issue from wp-admin-order-edit.test.js when running tests in browser mode.
- Changed those tests so that products and orders are deleted individually after every test run.
- Added deleteOrder() and deleteProduct() functions to withRestApi.

Co-authored-by: rodelgc <rodel.calasagsag@automattic.com>
2022-02-28 15:24:33 +08:00
Tung Du 3b637f1e93
Fix: `shopper.emptyCart()` issue. (#31977)
* fix: shopper.emptyCart

* ensure emptyCart work with cart containing multiple products
2022-02-25 16:14:42 +08:00
Ron Rennick 8ef39e2269
Merge pull request #31909 from woocommerce/fix/31907
Exclude the project root when ran in GitHub CI
2022-02-23 11:34:29 -04:00
jamelreid 9837274a66 Updated CHANGELOG.md 2022-02-22 13:06:51 -05:00
jamelreid 256d766518 Updated logic to resolveSingleE2EPath
All tests are expected to be found in the tests/e2e directory, so in the event that tests/e2e is a part of the single test path, it is removed to ensure the file path is correct.
2022-02-18 13:02:59 -05:00
Ron Rennick 4fa9cf1051 missed package bumps from #31836 2022-02-18 13:14:06 -04:00
Ron Rennick 34b5cae86f exclude test results from package publish 2022-02-18 13:06:29 -04:00
jamelreid a756af894c Clean up 2022-02-18 09:22:56 -05:00
Tam Mullen 74c72274a7 Add docker:wait to e2e env for waiting without running tests 2022-02-17 22:31:26 +00:00
jamelreid c73c2be097 Exclude the project root when ran in GitHub CI 2022-02-16 23:31:04 -05:00
Ron Rennick 5b78782a95
Merge pull request #31665 from woocommerce/packages/api/json-transform-tests
Partially fix the Order Model for JSON transforms in the @woocommerce/api package
2022-02-14 11:30:57 -04:00
Lucas Bustamante 3eeb1f239f
Merge pull request #31868 from woocommerce/add/api-t-documentation
Added documentation around certain conventions in API tests.
2022-02-09 19:35:20 -03:00
Lucas Bustamante 4ad028eab4
Merge pull request #31839 from woocommerce/fix/31748
update slack export to build version
2022-02-09 19:31:47 -03:00
Rodel cf90bda319 Added documentation 2022-02-09 15:14:55 +08:00
Lucas Bustamante 03614e54ae Tweak comment 2022-02-07 18:16:37 -03:00
Lucas Bustamante 0cf1b69c7a Rename/move test to more appropriate location 2022-02-07 18:13:02 -03:00
Lucas Bustamante 0bc908f8d2 CR: Spacing 2022-02-07 18:10:31 -03:00
Lucas Bustamante cd2ed17200 CR: Simplify code 2022-02-07 18:10:02 -03:00
Lucas Bustamante 299b7c0bdd Remove display_key/display_value from coupon_line on Order test 2022-02-07 18:08:26 -03:00
Lucas Bustamante ae5d23ce9f Rename property, code style changes, add developer comment 2022-02-07 18:05:06 -03:00
Lucas Bustamante 8b859ffb25 Merge branch 'trunk' into packages/api/json-transform-tests 2022-02-07 17:53:55 -03:00
Jamel Noel Reid 87b69a8f26
Merge pull request #31732 from woocommerce/e2e/add-force-to-test-scaffold
Add --force to test scaffold
2022-02-04 14:08:23 -05:00
Ron Rennick 3bb27bdc79 update slack export to build version 2022-02-04 14:48:56 -04:00
Jonathan Lane 5d2b764da1
Merge pull request #31835 from woocommerce/e2e/bump-default-wp
bump e2e-environment to WP 5.9.X default
2022-02-04 10:44:25 -08:00
Jonathan Lane d3183be8a5
Merge pull request #31838 from woocommerce/fix/31456
use OS path separator in installFiles
2022-02-04 10:38:50 -08:00
Ron Rennick 5c12aaa877 use OS path separator in installFiles 2022-02-04 14:17:54 -04:00
Ron Rennick da49a03b52 bump e2e-environment to WP 5.9.X default 2022-02-04 12:36:45 -04:00
Lucas Bustamante 6ec677643f CR: Spacing 2022-02-04 12:21:57 -03:00
Lucas Bustamante 4c8c792869 CR: Spacing 2022-02-04 12:20:59 -03:00
Lucas Bustamante 345faa6ea5 Skip confirmation for test files as well with --force 2022-02-03 20:47:14 -03:00
Lucas Bustamante f9c90b87ef Space for consistency 2022-02-03 20:36:18 -03:00
Lucas Bustamante d63a697d20 Merge branch 'trunk' into e2e/add-force-to-test-scaffold 2022-02-03 20:35:34 -03:00
Lucas Bustamante 1688d66484
Avoid calling substr method on undefined
Co-authored-by: Jamel Noel Reid <MrJnrman@users.noreply.github.com>
2022-02-03 20:35:03 -03:00
Ron Rennick eac5fb5c67 Merge branch 'trunk' into e2e/prepare-release 2022-02-03 15:30:07 -04:00
Lucas Bustamante c1cf58437f Remove tweak to work with both snake_case and camelCase 2022-02-03 11:26:49 -03:00
Lucas Bustamante 23b1c10518 Merge branch 'trunk' into packages/api/json-transform-tests 2022-02-02 18:14:31 -03:00
Ron Rennick 8508884c62 Merge branch 'trunk' into fix/31576 2022-02-02 15:12:55 -04:00
Ron Rennick c607bbfeb8 pre-release changelog fixes 2022-02-01 15:37:31 -04:00