Skip to content

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

Open
ethrealSpectre wants to merge 1 commit intoantiwork:mainfrom
ethrealSpectre:fix/stripe-test-timeout
Open

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

Conversation

@ethrealSpectre
Copy link

@ethrealSpectre ethrealSpectre commented Feb 5, 2026

closes: #1531

Test

e2e/tests/settings/administrator/payment-details.spec.ts:22:3 › Company administrator settings - payment details › allows connecting a bank account
https://github.com/antiwork/flexile/actions/runs/20915820205/job/60089005090#step:12:270

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.

Solution

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

Screenshot

Screenshot from 2026-02-04 20-01-38

AI Disclosure

I have used Opus 4.5 to understand issue.

@ethrealSpectre
Copy link
Author

@nyomanjyotisa PTAL.

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.

Fix flaky tests

1 participant