Skip to content

Fix the Cash App Pay decline E2E test waiting for network idle - #592

Draft
rtio wants to merge 1 commit into
trunkfrom
fix/e2e-cash-app-pay-decline-wait
Draft

rtio wants to merge 1 commit into
trunkfrom
fix/e2e-cash-app-pay-decline-wait

Conversation

@rtio

@rtio rtio commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

All Submissions:

  • Does your code follow the WooCommerce Sniffs variant of WordPress coding standards?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully run tests with your changes locally?
  • Will this change require new documentation or changes to existing documentation?

Changes proposed in this Pull Request:

After a declined payment, the "[Block]: Customers can pay using Cash App Pay after decline transcation once" test waited for networkidle on the checkout. On the merged Playwright 1.61.1 bump (#590) that wait timed out in all three attempts of one run, and once more in the next run before passing on retry. The test now waits for the Cash App Pay button to be back on the checkout; why the page no longer goes idle is not established.

Steps to test the changes in this Pull Request:

  1. Check that the E2E tests (@cashapp) job passes on this pull request.
  2. In its log, check that d1.cash-app-pay.spec.js:337 passes without a retry.

Changelog entry

Dev - Fix the Cash App Pay decline E2E test timing out while waiting for network idle.

🤖 Generated with Claude Code

Closes #593

"[Block]: Customers can pay using Cash App Pay after decline
transcation once" declines a payment, waits for the checkout with
`page.waitForLoadState('networkidle')`, then pays again.

Since the Playwright 1.61.1 bump that wait times out after 60 seconds
in most attempts: four of six across two runs and one re-run, against
none in the fourteen runs before the bump. The checkout itself is ready
within about a second of the customer returning: the trace shows the
old payment request checked and a new one created for the rebuilt
button, then no completed request for half a minute. What keeps the
page from counting as idle is not visible in the trace, so the cause is
not established.

Wait for what the next step needs instead: the Cash App Pay button on
the checkout, with no loading mask left. This is the same loading-mask
wait `selectPaymentMethod()` uses.

The three `networkidle` waits inside `placeCashAppPayOrder()` are left
alone. They run on other pages and have not failed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Test the build

WordPress Playground - runs in your browser

ℹ️ Neither can connect to Square: signing in to Square has to send you back to the site, and a site that runs in your browser tab has no public address to come back to. Without a connection the store cannot take payments, sync products or receive webhooks, so the previews show what a merchant sees before connecting. Do not enter Square access tokens or other credentials in a preview. The links stop working 14 days after the last build.


Build info:

  • Latest commit: b9ef174
  • Build time: 2026-11-12 22:50:36 UTC

Note: the build is updated when a new commit is pushed to this PR.

@github-actions

Copy link
Copy Markdown

✅ WordPress Plugin Check Report

✅ Status: Passed

📊 Report

All checks passed! No errors or warnings found.


🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

@github-actions

Copy link
Copy Markdown

This is linked to GitHub issue #593.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tracking Issue for PR #592: Fix the Cash App Pay decline E2E test waiting for network idle

1 participant