woocommerce / woocommerce-gateway-stripe

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

[E2E] Expand the address 2 field before attempting to fill out the checkout details #3211

Closed james-allan closed 3 months ago

james-allan commented 3 months ago

Changes proposed in this Pull Request:

WooCommerce 9.0 changed the block checkout to include a new toggle to show the address 2 (apartment suite) field.

Screenshot 2024-06-19 at 12 33 17 PM

This PR fixes that e2e tests which were failing because it couldn't fill out the address 2 field.

Testing instructions

  1. Run the e2e tests on develop.
    • npm run test:e2e-setup -- --base_url=https://example.ninja/
  2. You should see an error like this:
Screenshot 2024-06-19 at 12 39 05 PM
  1. Run the e2e tests on this branch.
  2. Tests should pass.
    • Note you may have the refund test fail, rerunning will usually fix that.

Post merge