Commit Graph

40320 Commits

Author SHA1 Message Date
Moon 7286dca881 Bump woocommerce-admin version to 2.9.0 2021-11-29 15:56:18 -08:00
jonathansadowski 24b327bb59
Merge pull request #31301 from woocommerce/update/distignore
Exclude changelog directory from deployments
2021-11-29 13:14:42 -06:00
jamelreid 0943490e1f Removed unnecessary setViewport 2021-11-29 13:55:05 -05:00
jamelreid 92ae77c817 Updated browser viewport dimensions 2021-11-29 13:54:44 -05:00
jamelreid 7ac1fa6369 Updated CHANGELOG.mdO 2021-11-29 13:54:15 -05:00
roykho f0dc99efcd
Merge branch 'add/legacy-assets-build' into trunk 2021-11-29 10:28:28 -08:00
roykho 2ab1393bdc
Merge branch 'trunk' into add/legacy-assets-build 2021-11-29 10:26:05 -08:00
roykho 1f7f576bbe
Use correct path 2021-11-29 10:06:01 -08:00
roykho 2c0487e152
Ignore tsconfig.tsbuildinfo 2021-11-29 09:59:53 -08:00
roykho 3d7ec4cd59
Remove redundant grunt items 2021-11-29 09:45:05 -08:00
Roy Ho 9e744e4029
Merge pull request #31312 from woocommerce/fix/formatter
Fix PHP Fatal error in Changelogger Formatter class
2021-11-29 07:28:34 -08:00
Néstor Soriano 53dc551f44
Merge pull request #31308 from woocommerce/up/action-scheduler
Update AS to 3.4
2021-11-29 10:16:19 +01:00
Jamel Noel Reid f46ceee910
Merge pull request #31291 from woocommerce/add/woocommerce-menu-page-load-tests
Added WP Admin page load tests
2021-11-26 14:23:11 -05:00
jamelreid db5db21b9c Moved afterAll block to after beforeAll 2021-11-26 14:01:32 -05:00
Barry Hughes d12717211a
Merge pull request #31307 from woocommerce/fix/table-name
Update db table name to use the new convention.
2021-11-26 10:15:06 -08:00
Tam Mullen d738e5b3ce Adding link to votes needed issues. 2021-11-26 16:49:51 +00:00
jamelreid f257d7a44f Moved seViewport to the test block 2021-11-26 11:45:27 -05:00
jamelreid dce79adc29 Updated css selectors 2021-11-26 11:45:08 -05:00
Claudio Sanches a8060e34d3 Fixed global namespace of DateTime and DateTimeZone
Fixes a PHP Fatal error:

```
PHP Fatal error:  Uncaught Error: Class 'Automattic\WooCommerce\MonorepoTools\Changelogger\DateTime' not found in /var/www/woo/wp-content/plugins/woocommerce/tools/changelogger/Formatter.php:143
```
2021-11-26 13:25:43 -03:00
Claudio Sanches 16b35ae2ab Removed leftovers from some debugging 2021-11-26 13:23:52 -03:00
Claudio Sanches bc910e2364
Merge pull request #31206 from woocommerce/fix/changelogger-validate
Jetpack Changelogger: Validate entries
2021-11-26 13:21:01 -03:00
jamelreid 8b8525d7df Added runAdminPageLoadTests to runMerchantTests 2021-11-26 11:06:00 -05:00
Peter Fabian 757bfe1d16 Update AS to 3.4 2021-11-26 11:53:46 +01:00
Peter Fabian 433bd34b18 Update db table name to use the new convention. 2021-11-26 11:35:29 +01:00
jamelreid 7329e03eb2 Updated CHANGELOG 2021-11-25 16:43:43 -05:00
jamelreid 0f495cdbae Moved setViewport and logged out after each test
Changes:
- Moved setViewport to the beforeAll block
- Added a afterAll block to log out after each set of tests
- References the MENUS array from specs/data/elements.js
2021-11-25 13:20:36 -05:00
jamelreid 65f151cf11 Aliased runPageLoadTest to runAdminPageLoadTests 2021-11-25 13:17:09 -05:00
jamelreid 9fa5eb51dc Added elements.js to store element data 2021-11-25 13:16:17 -05:00
jamelreid 3f95553593 Updated function name to match its export 2021-11-25 12:06:47 -05:00
jamelreid f9a6a848ae Removed unused function 2021-11-25 12:06:08 -05:00
jamelreid 4c8a553ac3 Renamed & updated to test multiple menus
This script takes a menus array which contains selectors for top-level menu items and their associated sub-menus and verifies that they all load successfully.
2021-11-25 12:05:40 -05:00
Ron Rennick b905b9208f
Merge pull request #31302 from woocommerce/fix/pr-smoke-test
remove stray quote in workflow action
2021-11-25 10:29:18 -04:00
Ron Rennick 207030ed9b remove stray quote in workflow action 2021-11-25 10:24:35 -04:00
Claudio Sanches cf8e4225a6 Exclude changelog directory from deployments 2021-11-25 11:14:52 -03:00
Vedanshu Jain 5d0296c565
Merge pull request #31286 from woocommerce/php8.1/add-ReturnTypeWillChange-attributes
[PHP 8.1] Add ReturnTypeWillChange attribute to classes implementing ArrayAccess
2021-11-25 17:22:31 +05:30
jamelreid 730cd35d96 Added page load tests to the plugin e2e directory 2021-11-24 19:21:01 -05:00
jamelreid 895ef1db0e Added runWcPageLoadTest & runAdminPageLoadTests to exports 2021-11-24 19:18:56 -05:00
jamelreid a50f40e857 Updated WooCommerce menu page load script 2021-11-24 19:17:45 -05:00
jamelreid e5a12e5334 Added function to open WC Admin Page 2021-11-24 19:15:34 -05:00
Barry Hughes ca40a48d97
Merge pull request #30890 from mahmoudsaeed/trunk
Fix taxes endpoint returning incorrect X-WP-Total and X-WP-TotalPages headers
2021-11-24 14:49:18 -08:00
jamelreid 8fdbc77bf8 Added WooCommerce menu page load test script 2021-11-24 12:15:30 -05:00
Nestor Soriano f7137a44e6
Fix README in the tests directory
The instructions to run the unit tests in PHP 8 were missing
a couple of required commands.
2021-11-24 16:53:34 +01:00
Nestor Soriano 963eef02fa
Add ReturnTypeWillChange attribute to classes implementing ArrayAccess
PHP 7.x and 8.1 will throw a fatal error, thus causing the unit tests
suite to abruptly end, if a method from an implemented interface doesn't
fully match the signature as defined in the interface. In WooCommerce
that's the case for the classes that implement ArrayAccess: in
PHP 8.0+ these signatures have type hints and return types (as in
"offsetUnset( mixed $offset ):void" ) but the code in WooCommerce
doesn't. We can't just add the missing types to the signatures because
then the same error appears in PHP 7.x, in which there aren't
types in the method signatures of ArrayAccess.

The fix consists of adding the ReturnTypeWillChange attribute,
introduced in PHP 8.1, which instructs the runtime to not throw the
error. PHP 7.x doesn't support attributes, but in this case the
attribute declaration is seen as a comment.

See https://php.watch/versions/8.1/ReturnTypeWillChange
2021-11-24 16:22:49 +01:00
Mahmoud Saeed 05fbbc591e Fix taxes endpoint returning incorrect X-WP-Total and X-WP-TotalPages headers #30890 2021-11-24 11:16:55 +02:00
Brian 727ccd0dd3
Albania: add states and change label (#31190)
* add albanian states

* change label for albania

* change to english language

* fix names

* sorting
2021-11-23 16:53:25 -05:00
Brian 2623be878e
Nicaragua: Add States / Update Label (#31179)
* add label for nicaragua state

* add nicaragua states

* change to english string

* fix names
2021-11-23 14:36:05 -05:00
Ron Rennick 226d5ac423
port config, waitForSelector from puppeteer-utils (#31240) 2021-11-23 18:55:42 +01:00
Brian e1b9235855
Ecuador: add states / update label (#31186)
* add ecuador states

* add label for ecuador

* change to english string

* add hyphenate

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2021-11-23 12:47:22 -05:00
Brian 80d95b72e5
Colombia: add states / change label (#31188)
* add colombia states

* update label for state (colombia)

* change to english string

* fixes CLDR names, sorting

* sorting

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2021-11-23 12:47:05 -05:00
Brian 28e902442b
Honduras: Add States / Update Label (#31180)
* add honduras states

* add label for state (honduras)

* change to english string

* fix name due to cldr

* fix name

* fix sorting
2021-11-23 12:46:46 -05:00