woocommerce / woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
https://wordpress.org/plugins/woocommerce-gateway-stripe/
236 stars 206 forks source link

Fix failing E2E tests due to login step failure #3615

Closed annemirasol closed 2 days ago

annemirasol commented 3 days ago

Changes proposed in this Pull Request:

Fixes failing e2e tests by updating the selector for the login button.

The old selector no longer works because a screen reader element, <h1 class="screen-reader-text">Log In</h1>, is being selected instead of the button we want.

Error log:

- Trying to log-in as admin...
User log-in failed, Retrying... 1/1. page.click: Timeout 30000ms exceeded.
Call log:
  - waiting for locator('text=Log In')
  -   locator resolved to 2 elements. Proceeding with the first one: <h1 class="screen-reader-text">Log In</h1>
  - attempting click action
  -   waiting for element to be visible, enabled and stable
  -   element is visible, enabled and stable
  -   scrolling into view if needed
  -   done scrolling
  -   element is outside of the viewport

Testing instructions

E2E tests (Default) do not fail at the login step.


Post merge