Skip to content

fix(tests): increase async query timeouts in sentryApplicationDashboard tests#117536

Open
sentry[bot] wants to merge 2 commits into
masterfrom
claude/fix-flaky-sentry-app-dashboard-test-1749728375
Open

fix(tests): increase async query timeouts in sentryApplicationDashboard tests#117536
sentry[bot] wants to merge 2 commits into
masterfrom
claude/fix-flaky-sentry-app-dashboard-test-1749728375

Conversation

@sentry

@sentry sentry Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes JEST-21V8

The sentryApplicationDashboard/index.spec.tsx test suite intermittently fails because findByTestId / findByText time out after the default 1000ms waiting for React Query to resolve mock API calls and render async elements. This is especially common in slower CI environments.

Changes

Increased the timeout to 5000ms for all async queries in the test suite:

  • screen.findByTestId('installs', undefined, {timeout: 5000})
  • screen.findByTestId('request-item', undefined, {timeout: 5000})
  • screen.findByTestId('chart', undefined, {timeout: 5000})
  • screen.findByText('No requests found in the last 30 days.', undefined, {timeout: 5000})
  • waitFor(() => ..., {timeout: 5000})

This prevents flaky timeouts without changing any test logic or assertions.

…rd tests

Fixes JEST-21V8

The test intermittently fails because findByTestId times out after the
default 1000ms waiting for React Query to resolve mock API calls and
render async elements. This is especially common in slower CI
environments.

Increase the timeout to 5000ms for all findByTestId, findByText, and
waitFor calls in the test suite to prevent flaky timeouts.
@sentry sentry Bot requested a review from a team as a code owner June 12, 2026 15:50
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 12, 2026
@getsantry

getsantry Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry Bot added the Stale label Jul 4, 2026
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 Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant