woocommerce / woocommerce-admin

(Deprecated) This plugin has been merged to woocommerce/woocommerce
https://woocommerce.github.io/woocommerce-admin/#/
Other
361 stars 145 forks source link

Last two E2E tests fail locally #7093

Closed rrennick closed 3 years ago

rrennick commented 3 years ago

Describe the bug The last two tests are failing for me locally due to a popup. See screenshot

 FAIL  ../../../tests/e2e/specs/tasks/payment.test.js (43.929s)
  Payment setup task
    ✓ Can visit the payment setup task from the homescreen if the setup wizard has been skipped (1407ms)
    ✕ Saving valid bank account transfer details enables the payment method (30214ms)
    ✕ Enabling cash on delivery enables the payment method (865ms)

  ● Payment setup task › Saving valid bank account transfer details enables the payment method

    : Timeout - Async callback was not invoked within the 30000ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 30000ms timeout specified by jest.setTimeout.Error:

To Reproduce Steps to reproduce the behavior:

Manually

  1. Initialize a new E2E container without running any of the E2E tests
  2. Complete onboarding
  3. Go to set up payments from the task list
  4. Set up BACS
  5. Once back on the home screen re-load the page

With E2E

  1. Run E2E with #7804 with npx wc-e2e test:e2e-dev
  2. See screenshot on last two tests

Screenshots

Screen Shot 2021-05-31 at 1 01 27 PM

Additional context

7804 passes in CI. I want to finish #7804 without making any changes to test code so I created this issue for a PR to address this.

samueljseay commented 3 years ago

This one has been a constant frustration for me. I suspected it was because in some scenarios that modal "We're here for help" dialog, may or may not show up, or shows up really delayed.

rrennick commented 3 years ago

@samueljseay I update the description with the steps to reproduce manually.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

rrennick commented 3 years ago

These are passing locally now so I will close the issue. It can be reopened if the issue recurs.