Skip to content

[E2E][WC-7.7.0] Several tests failing due to an Internal Server Error message in the Checkout #10428

Closed
@mgascam

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:

Image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category: e2eIssues and PRs related to e2e tests.e2e: broken environmentChange in e2e environment caused test failure.needs triageManually put issue into triage process.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions