Skip to content

fix: flaky Stripe test timeouts in payment-details.spec.ts#1

Open
ethrealSpectre wants to merge 1 commit intomainfrom
fix/stripe-test-timeout
Open

fix: flaky Stripe test timeouts in payment-details.spec.ts#1
ethrealSpectre wants to merge 1 commit intomainfrom
fix/stripe-test-timeout

Conversation

@ethrealSpectre
Copy link
Owner

1) Problem

The test allows connecting a bank account was failing in CI with a 60s timeout. The locator getByLabel("Test Institution") was stuck waiting for an element that does not exist in the current Stripe test mode UI.

2) Solution

  • Reliable Locator: Replaced the broken label selector with a deterministic Search-and-Select workflow (Search "Test" -> Click "Test (Non-OAuth)").
  • Robustness: Added explicit timeout: 60000 to Stripe iframe assertions to handle slow loading in CI.
  • Speed: Switched from UI-based menu navigation to direct page.goto("/settings/administrator/billing").

3) Screenshot

(No visual changes, purely test fix. Passing test output serves as verification.)

4) AI Disclosure

This PR was generated by an AI assistant.

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.

1 participant