Skip to content

Fix E2E payment locators after the Pay now / Pay later relabel - #1465

Merged
daveearley merged 1 commit into
developfrom
fix/e2e-payment-step-locators
Oct 29, 2026
Merged

daveearley merged 1 commit into
developfrom
fix/e2e-payment-step-locators

Conversation

@daveearley

Copy link
Copy Markdown
Contributor

Fixes the E2E failures on develop after #1460 (the e2e 1/2 shards on #1461).

#1460 relabelled the checkout payment step: the method tabs are now "Pay now" / "Pay later", and the submit button reads "Place order" when paying later. Two locators still matched on /^Pay\b/:

  • CheckoutPage.clickPay() (and its retry in payWithStripeTestCard) now matched the two tabs as well as the "Pay $…" button, so both Stripe kitchen-sink specs failed with a strict mode violation. It now targets the button whose name is "Pay" followed by an amount.
  • taxes-and-fees.spec.ts runs on an offline-only event, so the button reads "Place order" and the locator never matched; the test hung until the 60s timeout. It now clicks offline-payment-button, as offline-payment.spec.ts does.

E2E-only change; no app code touched.

Testing

Rebuilt the hermetic e2e stack and ran, with Stripe test keys, every spec that goes through these helpers: taxes-and-fees, kitchen-sink (offline + Stripe), kitchen-sink-recurring (offline + Stripe), stripe-checkout, stripe-decline-retry, orders-refund, seat-stripe, embedded-widget. 15 passed.

The payment step now labels its tabs "Pay now" and "Pay later" and shows "Place order" when paying later, so /^Pay\b/ matched the tabs as well as the pay button and never matched on offline-only events.
@daveearley
daveearley merged commit 1def73a into develop Oct 29, 2026
4 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant