Skip to content

Conversation

@sahitya-chandra
Copy link

@sahitya-chandra sahitya-chandra commented Jan 30, 2026

Issue: #1531

Test:

Problem

The test was timing out because:

  1. The Stripe iframe (elements-inner-payment) loads asynchronously from an external CDN
  2. The test clicked "Test Institution" immediately without waiting for the iframe content to render
  3. In CI, the iframe often wasn’t ready within the timeout

Solution

Added implicit waits before each Stripe iframe interaction:

  • await expect(stripePaymentFrame.getByLabel("Test Institution")).toBeVisible(); before clicking "Test Institution" in both the initial "Link your bank account" flow and the "Edit" flow

This follows the same pattern used in the microdeposits test in the same file (waiting for "Routing number" before interacting with the bank frame).

Screenshot

couldn't able to test this locally because I don't have a Stripe account currently.
So, I am relying on CI checks for this test verification.

Screenshot from 2026-01-30 13-36-41

AI Disclosure

I have used Claude Opus 4.5 to implement the fix.

@sahitya-chandra
Copy link
Author

@nyomanjyotisa _a could you review this pr?

All CI checks have passed...

Copy link
Member

@nyomanjyotisa nyomanjyotisa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test failing:

Image

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.

2 participants