Closed
Description
Description
The e2e tests in WC - 7.7.0 | * are failing consistently for the last 48 hours (last run). All the failures seem related to an error during the checkout.
Output from the test failure:
1) [chromium] › tests/e2e/specs/wcpay/merchant/merchant-admin-analytics.spec.ts:39:6 › Admin order analytics › should load without any errors
"beforeAll" hook timeout of 120000ms exceeded.
24 | useMerchant();
25 |
> 26 | test.beforeAll( async ( { browser } ) => {
| ^
27 | const { shopperPage } = await getShopper( browser );
28 | const { merchantPage } = await getMerchant( browser );
29 |
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e/specs/wcpay/merchant/merchant-admin-analytics.spec.ts:26:7
Error: page.waitForURL: Test ended.
=========================== logs ===========================
waiting for navigation until "load"
============================================================
at ../utils/shopper.ts:454
452 | await focusPlaceOrderButton( page );
453 | await placeOrder( page );
> 454 | await page.waitForURL( /\/order-received\//, {
| ^
455 | waitUntil: 'load',
456 | } );
457 | await expect(
at placeOrderWithOptions (/home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e/utils/shopper.ts:454:13)
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e/specs/wcpay/merchant/merchant-admin-analytics.spec.ts:35:13
I was able to check that the screenshots in several of the tests that are failing show an "Internal Error" message in the checkout form:
Additional context
- Only the WC - 7.7.0 | * tests are failing
- WP - Nightly, WC - Latest, WC - beta are green
Running e2e tests in my local instance I can see an error in the wc-logs folder:
2025-02-24T13:09:31+00:00 CRITICAL Uncaught Error: Undefined constant WC_Install::STORE_ID_OPTION in /var/www/html/wp-content/plugins/woocommerce-payments/includes/class-woopay-tracker.php:390
Priority
Reason why this e2e test is broken
I'm adding the "e2e: broken environment" label because the error seems to be caused with an issue in the checkout step that is affecting other tests.
Important
Please, ensure when closing this issue (PR fix) that only one e2e: broken
label is added and it is accurate.
- I confirmed there's only one
e2e: broken
label in this issue and it is accurate.
Activity