Skip to content

fix(test): Fix flaky SpanEvidencePreview error state test#111853

Closed
JoshuaKGoldberg wants to merge 1 commit intomasterfrom
fix/flaky-span-evidence-preview-v3
Closed

fix(test): Fix flaky SpanEvidencePreview error state test#111853
JoshuaKGoldberg wants to merge 1 commit intomasterfrom
fix/flaky-span-evidence-preview-v3

Conversation

@JoshuaKGoldberg
Copy link
Copy Markdown
Member

Use waitFor with a longer timeout for the error text assertion in the SpanEvidencePreview spec.

The hovercard has a render delay (100ms) and useApiQuery may retry failed requests with exponential backoff, causing findByText to time out under CI load. Using waitFor with a 3000ms timeout gives sufficient headroom for the error state to render reliably.

This test failed 2 times on master in the last 30 days.

Made with Cursor

Use waitFor with a longer timeout for the error text assertion.
The hovercard has a render delay and useApiQuery may retry failed
requests, causing findByText to time out under CI load.

Made-with: Cursor
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 30, 2026
@JoshuaKGoldberg JoshuaKGoldberg deleted the fix/flaky-span-evidence-preview-v3 branch March 31, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant