Commit Graph

41 Commits

Author SHA1 Message Date
Sam Seay 55b49cb50a
Fix and consolidate linting across the monorepo (#35012) 2022-10-12 15:05:01 +13:00
Tomek Wytrębowicz a86e387667
Update/unify jest@27 across all packages (#34322)
* Update `jest-puppeteer@5.0.4` (from `4.4.0`)

to be albe to run with jest 28.

* Update `jest` and `ts-jest@^27` (from `25`),

to match `e2e-environment` needs.

* Update api-core-tests' `jest@^27` (from `25`),

to unify the used version across the stack.

* Update e2e-env's `jest@^27` & co.  (from `25`),

to unify the used version across the stack.

* Update e2e-env's `@jest/test-sequencer@^27`  (from `25`),

to unify the used version across the stack.

* Update admin-e2e-tests' `@jest/globals@^27`  (from `26`),

to unify the used version across the stack.

* Update woocommerce's `jest@^27.5.1`  (from `25`),

to unify the used version across the stack.

* Replace `mocked` from `ts-jest` to the one from `jest`,

Update `@types/jest@27.4.1` from `27.0.2`.
Try to fix broken tsc build.

* Update `e2e-core-tests`' `@jest/globals@^27.5.1`

from `^26.4.2`.

* Remove changelog entry for bumpin jest in `api-core-tests`

It was already covered in `trunk`.

Addresses https://github.com/woocommerce/woocommerce/pull/34322#discussion_r956019567

* Updated package-lock.yaml

* Updated timeout

* Added changelogs

Co-authored-by: jamelreid <jnoelreid@gmail.com>
2022-09-06 09:29:45 -05:00
nigeljamesstevenson 301c02a757
add tests for shipping zone regions (#34339)
* add tests for shipping zone regions

* add changelog file

* add changelog file

* update files to disable use of linting rules via .elintrc.js rather than .eslintrc

Co-authored-by: Greg <zhongruige@gmail.com>
2022-08-17 14:50:31 -06:00
Paul Sealock 489ebf2cc6
Standardize linting: e2e js packages (#32794) 2022-05-05 15:02:50 +12:00
Rodel 110266fd9b Sync with trunk, changelog entry, resolve conflicts 2021-12-08 14:43:02 +08:00
Peter Fabian edcffa9912
Merge pull request #31338 from woocommerce/fix/28166-coupon-item-meta-data
Consistently Store Coupon Data in Order Item Meta
2021-12-07 18:35:08 +01:00
Rodel 822abbfbce Merge branch 'trunk' into add/api-tests-add-complex-order 2021-12-07 15:50:49 +08:00
Rodel eee9a56d71 Merge branch 'trunk' into add/api-tests-shipping-zones-and-methods 2021-12-03 01:40:41 +08:00
Rodel cddf617808 Tests around the default shipping zone 2021-12-03 01:38:16 +08:00
Rodel c40d12fc50 Simplified test data setup 2021-12-02 21:52:25 +08:00
Rodel d10e40f8fa Merge branch 'trunk' into add/api-tests-add-complex-order 2021-12-02 21:35:16 +08:00
Rodel daa43add85 Improved test readability 2021-12-02 21:33:52 +08:00
Rodel 46d60f9b87 Add api group to test, and other minor changes 2021-12-02 14:06:19 +08:00
Rodel ba87378479 Removed unnecessary property in test data 2021-12-02 00:28:55 +08:00
Rodel dd3b372658 Minor cleanup 2021-12-01 23:44:34 +08:00
Rodel 99f63cb378 Merge branch 'trunk' into add/api-t-order-search 2021-12-01 23:43:23 +08:00
Rodel 3f269b9129 Set test data within the test 2021-12-01 23:40:18 +08:00
Jeff Stieler 21f6ea6ae5 Add test for coupon meta data to API test. 2021-11-30 15:19:01 -05:00
Jeff Stieler 4366de753e Format test file. 2021-11-30 15:18:40 -05:00
Rodel 248d0ecc03 Added back assertion; clean up pre-existing zones 2021-11-22 21:23:43 +08:00
Rodel 3c31414c80 Merge branch 'trunk' into add/api-tests-orders-crud 2021-11-22 15:37:25 +08:00
Rodel 38be0cf7c8 Merge branch 'trunk' into add/api-tests-add-complex-order 2021-11-19 23:31:42 +08:00
Rodel ca5124e1d1 Merge branch 'trunk' into add/api-t-order-search 2021-11-19 22:38:12 +08:00
Jeff Stieler 2bac37f4e6
Orders Endpoint Acceptance Tests (#31033)
* Create more sample orders data.

* Code formatting.

* Add tests for pagination.

* Formatting.

* Add test case for inclusion and exclusion parameters.

* Add test for parent and parent_exclude parameters.

* Add test case for status parameter.

* Add test case for customer parameter.

* Add test case for product parameter.

* Create a test order with all numerical properties populated.

* Add test case for precision parameter.

* Add test case for search parameter.

* Add test case for orderby parameter.

* Move missed api-core-tests files.

* Force tests to run in band (sequentially).
2021-11-16 10:03:53 -07:00
Rodel 756644dac3 Removed flaky assertion 2021-11-16 15:50:51 +08:00
Rodel c924666812 Test for adding a complex order 2021-11-15 22:30:34 +08:00
Rodel c7bab0d3cd Added shipping method tests 2021-11-11 21:11:03 +08:00
Rodel 820110dbff Test for "List all shipping zones" 2021-11-11 20:02:30 +08:00
Rodel 8c54bcb748 Added update and retrieve shipping zone tests 2021-11-11 19:47:40 +08:00
Rodel 32d0a43a74 Added shipping zone tests 2021-11-11 19:39:40 +08:00
Rodel a33a1d7c87 Removed duplicate tests 2021-11-11 15:44:25 +08:00
Rodel 988618056d Added test for empty result set 2021-11-10 22:58:04 +08:00
Rodel 43b7f0ea29 Additional assertions 2021-11-10 22:03:51 +08:00
Rodel 2f87604ef1 Removed unnecessary dependencies 2021-11-10 21:46:50 +08:00
Rodel 49647ea852 Added tests for order search 2021-11-09 18:19:44 +08:00
Rodel 1f341df486 Merge branch 'trunk' into add/api-tests-orders-crud 2021-11-09 14:38:19 +08:00
Greg 812b672c5e Add in missing refunds test 2021-10-29 16:43:45 -06:00
Rodel d2c6ce622f Corrected import path 2021-10-30 00:16:18 +08:00
Rodel 48c724d3d8 Remove unnecessary group tag 2021-10-30 00:13:24 +08:00
Rodel 28440b365e Moved test to new directory 2021-10-29 23:51:05 +08:00
Paul Sealock 789d942f89
Update e2e package locations and add PNPM (#30977) 2021-10-29 08:32:31 +13:00