Skip to content

[E2E] WooCommerce Blocks tests fail with WP Nightly #10345

Closed as not planned
Closed as not planned
@mgascam

Description

Description

There are shopper test suites failing in the E2E - All workflow, with WP Nightly version:

  • tests/e2e-pw/specs/wcpay/shopper/shopper-wc-blocks-checkout-failures.spec.ts:106:8 › WooCommerce Blocks > Checkout failures › Should show error – Your card was declined.
  • tests/e2e-pw/specs/wcpay/shopper/shopper-wc-blocks-checkout-purchase.spec.ts:44:7 › WooCommerce Blocks > Successful purchase › using a basic card
  • tests/e2e-pw/specs/wcpay/shopper/shopper-wc-blocks-saved-card-checkout-and-usage.spec.ts:58:7 › WooCommerce Blocks > Saved cards › should be able to save basic card on Blocks checkout

Output from the test failure:

    "beforeAll" hook timeout of 120000ms exceeded.

      70 | 		let shopperPage: Page;
      71 |
    > 72 | 		test.beforeAll( async ( { browser }, { project } ) => {
         | 		     ^
      73 | 			shopperPage = ( await getShopper( browser ) ).shopperPage;
      74 |
      75 | 			if (
        at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/wcpay/shopper/shopper-wc-blocks-checkout-failures.spec.ts:72:8

    Error: locator.fill: Test ended.
    Call log:
      - waiting for getByPlaceholder('Search')

Additional context

Priority

I'm assigning a medium priority because only the WP Nightly tests are failing.

Reason why this e2e test is broken

The tests are failing due to missing elements in the DOM. Given it's only failing for the WP Nightly tests this could be related to some upstream changes in the structure of the DOM (needs to be confirmed). For this reason I'm adding the e2e: broken environment label

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions