Commit Graph

40307 Commits

Author SHA1 Message Date
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
Brian d96c380332
Panama: Update States & Label (#31178)
* add panama states

https://en.wikipedia.org/wiki/ISO_3166-2:PA

* add label for state

* change to english string

* fix name to english
2021-11-23 12:40:41 -05:00
Brian cf9510577b
Republica Dominicana: change label for state (#31191)
* change label for state DO

* change to english string

* added cdlr states, sorting
2021-11-23 12:10:24 -05:00
Brian dd64b5c8ff
Bolivia: fix iso code / update label (#31181)
* fix iso format of bolivian states

* add label for states bolivia

* change to english string

* update sorting of states
2021-11-23 11:41:33 -05:00
Ron Rennick fa192d9c27
add shopper.logout() (#31120) 2021-11-23 14:28:17 +01:00
Ron Rennick e449511ff0
Clean up e2e-environment changes from monorepo reorg (#31233)
* add flag to distinguish between the development repo and npm package

* introduce local E2E file resolver function

* update package changelog and readme
2021-11-23 13:56:24 +01:00
Ron Rennick 23f4f1c744
avoid issues with preconfigured curl options in npm (#31232) 2021-11-23 13:16:05 +01:00
Ron Rennick c69b84f8ec
add e2e-core-tests build script (#31221) 2021-11-23 12:57:56 +01:00
Greg 8bbd41d6e2
Merge pull request #31052 from woocommerce/add/api-tests-orders-crud
API tests for CRUD methods in Orders API
2021-11-22 13:43:35 -07:00
Barry Hughes 5773089e8c
Merge pull request #31227 from woocommerce/fix/count_param
Update count param consistently.
2021-11-22 11:34:47 -08:00
Peter Fabian ab1a35719c
Merge pull request #31257 from woocommerce/fix/31035
Send set password link instead of the actual password to new users.
2021-11-22 18:43:41 +01:00
jonathansadowski 6bd17a3dfd
Merge pull request #31272 from woocommerce/fix/smoke-test-release
Add missing run command
2021-11-22 10:03:27 -06:00
roykho 22a1e0b2b5
Add path 2021-11-22 06:28:18 -08:00
roykho b88ec3a573
Add missing run command 2021-11-22 06:22:33 -08:00