Ron Rennick
036ab6a464
simplify core test scaffold, add default setup
2021-12-08 16:56:53 -04:00
Ron Rennick
2698cb36ff
add overwrite confirmation
2021-12-08 15:12:27 -04:00
jamelreid
17d2c25ae5
Added comment
2021-12-08 14:03:08 -05:00
jamelreid
1a5c44c472
Exported all methods from jest-object.config
2021-12-08 14:01:00 -05:00
jamelreid
6086223708
Added setupJestRetries to beforeAll block
2021-12-08 14:00:31 -05:00
jamelreid
a6f51a9a39
Added default param and exported all methods
2021-12-08 14:00:02 -05:00
jamelreid
1f14d557dd
Updated README.md with jest retry documentation
2021-12-08 13:59:10 -05:00
jamelreid
fecbeac4ad
Updated CHANGELOG.md
2021-12-08 13:44:58 -05:00
jamelreid
f4472d74ec
Merge branch 'trunk' into add/jest-retry
2021-12-08 13:03:23 -05:00
jamelreid
7b36ba2b3e
Updated CHANGELOG.md
2021-12-08 13:02:11 -05:00
jamelreid
00fc5495ef
Added script to post test results to GitHub PR
2021-12-08 12:48:24 -05:00
jamelreid
5b24808971
Stored test results as json
2021-12-08 12:47:50 -05:00
Ron Rennick
59f1f3a6b5
Give installFiles its own index
2021-12-08 13:47:30 -04:00
Ron Rennick
6989bd61f9
merge trunk
2021-12-08 12:12:34 -04:00
Ron Rennick
2ec68e0e69
code cleanup
2021-12-08 11:07:24 -04: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
28bbeab9c2
Moved changelog entries to unreleased section
2021-12-07 15:49:18 +08:00
Rodel
6af432f646
Merge branch 'trunk' into add/api-tests-shipping-zones-and-methods
2021-12-07 15:47:30 +08:00
jamelreid
021b61a5f9
Merge branch 'trunk' into add/jest-retry
2021-12-06 17:50:22 -05:00
jamelreid
cbbe8eeec1
Updated CHANGELOG.md
2021-12-06 16:10:55 -05:00
jamelreid
b7f11e3527
Removed waitForNavigation command
2021-12-06 15:37:30 -05:00
jamelreid
63489fd85f
Added shopper.logout() in afterAll block
2021-12-06 12:57:16 -05:00
jamelreid
76548b872c
Awaited shopper.logout()
2021-12-06 12:56:56 -05:00
jamelreid
18283d2b1a
Merge branch 'trunk' into add/jest-retry
2021-12-03 14:25:00 -05:00
roykho
286928bb6d
Ignore package-lock.json
2021-12-02 11:12:27 -08:00
roykho
c03bcc59b4
Prevent the use of npm to install packages
2021-12-02 11:09:46 -08:00
Rodel
ebb4eb3ce2
Corrected endpoint name
2021-12-03 02:41:21 +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
jamelreid
35286bbbe6
Added jest-object.config.js file
...
This file is intended to be used to configure the jest object in a single place.
The setupJestObject method can be imported from @woocommerce/e2e-environment for easy usage.
2021-12-02 09:40:27 -05: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
jamelreid
3a39d7d9fc
Updated check for default category
2021-12-01 15:48:31 -05:00
jamelreid
920c1a7580
Updated testRunner to be jest-circus
2021-12-01 14:35:06 -05:00
jamelreid
69dc645f0e
Added the jest-circus package
...
In jest version before 27, we need to use jest-circus. For 27 and after, jest-circus is the default test runner.
2021-12-01 14:34:28 -05:00
jamelreid
72cf968bce
Updated CHANGELOG.md
2021-12-01 14:33:34 -05: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
Rodel
e551881817
Revert unnecessary change
2021-12-01 23:26:02 +08:00
Jamel Noel Reid
e0516c475d
Merge pull request #31314 from woocommerce/fix/31305
...
Update setBrowserViewport to use default dimensions
2021-12-01 09:24:30 -05:00
jamelreid
c175284139
Used setBrowserViewport instead of setViewport
2021-12-01 08:34:54 -05: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
Ron Rennick
519b4f6de4
fix lock merge conflict
2021-11-30 15:48:39 -04:00
Ron Rennick
dd7eae42d1
update imports to ES6 format, pnpm-lock.yaml
2021-11-30 15:16:51 -04:00
jamelreid
a76faaf72c
Added setViewport
...
This change is done to ensure that these tests pass.
Wonky Tests:
- 'can create simple virtual product and add it to the cart'
- 'can create simple non-virtual product and add it to the cart'
It is observed that these tests fail when the following criteria are met:
- Running in headless mode
- Viewport is not set to 960x700
It is observed to pass when:
- Running in non-headless
- Running as an individual test file
The most likely culprit causing this issue is the verifyAndPublish function. More specifically, the element with the selector '.updated.notice' does not show up when the failing criteria are met.
2021-11-30 08:40:01 -05: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
Ron Rennick
06f0908443
add default container initialization
2021-11-26 16:56:56 -04:00
Ron Rennick
25cd08933c
add --ext and --format arguments
2021-11-26 16:55:22 -04: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
Ron Rennick
a21af3d3c6
add resolvePackage(), resolvePackagePath() utilities
2021-11-26 15:14:49 -04:00
jamelreid
db5db21b9c
Moved afterAll block to after beforeAll
2021-11-26 14:01:32 -05: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
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
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
6c197cc743
Merge branch 'trunk' into poc/e2e-scaffold
2021-11-25 12:16:23 -04: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
jamelreid
8fdbc77bf8
Added WooCommerce menu page load test script
2021-11-24 12:15:30 -05:00
Ron Rennick
226d5ac423
port config, waitForSelector from puppeteer-utils ( #31240 )
2021-11-23 18:55:42 +01: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
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
Jeff Stieler
209566b7c4
Fix errant stock adjustment when saving partially refunded orders. ( #31172 )
...
* Preserve stock metadata for refunded items.
Prevents fully restocked items on partially refunded orders from having stock reduced on subsequent order updates.
* Add E2E test covering errant restocking fix.
2021-11-19 14:24:35 -07:00
Ron Rennick
b698a80f36
add basic test spec installer
2021-11-19 17:02:02 -04: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
Ron Rennick
fc9c3c7aa0
Merge branch 'trunk' into fix/e2e-env-monorepo
2021-11-18 22:13:53 -04:00
Ron Rennick
202469fd5b
add common utilities for cart, checkout coupon tests
2021-11-17 15:25:51 -04:00
Ron Rennick
02e814b191
add common utilities for cart, checkout coupon tests
2021-11-17 15:21:22 -04:00
Ron Rennick
b901923017
deprecate analytics page test
2021-11-17 13:11:55 -04:00
Ron Rennick
a45abc129f
merge trunk
2021-11-17 12:48:36 -04:00
Ron Rennick
b1a8664ff4
merge trunk
2021-11-17 12:46:23 -04:00
Greg
d5113e9361
Fix retrieving status code for API tests
2021-11-17 09:02:45 -07:00
Ron Rennick
2bf628fc55
fix pnpm lock conflict
2021-11-17 10:15:50 -04:00
Ron Rennick
43d73eb32a
update package changelog and readme
2021-11-17 10:02:15 -04:00
Ron Rennick
61fd4e0a5e
introduce local E2E file resolver function
2021-11-17 09:50:40 -04:00
Christopher Allford
2f0a828493
Downgraded ts-jest
...
This was causing issues with building the API package, which in turn
broke the entire build.
2021-11-16 15:33:00 -08:00
Christopher Allford
471e5e7877
Fixed @woocommerce/api Builds
...
It looks like I missed the `pnpm-lock.yaml` update.
2021-11-16 15:19:33 -08:00
Ron Rennick
2f9a6a32c2
deprecate core e2e setup, onboarding tests
2021-11-16 18:51:24 -04:00