Skip to content

fix(test): Fix flaky React Native metrics onboarding test#111848

Closed
JoshuaKGoldberg wants to merge 1 commit intomasterfrom
fix/flaky-react-native-metrics-spec-v2
Closed

fix(test): Fix flaky React Native metrics onboarding test#111848
JoshuaKGoldberg wants to merge 1 commit intomasterfrom
fix/flaky-react-native-metrics-spec-v2

Conversation

@JoshuaKGoldberg
Copy link
Copy Markdown
Member

Replace heavy MetricsTabOnboarding render with the lightweight renderWithOnboardingLayout helper, matching the pattern used by other metrics spec files (e.g. dotnet/metrics.spec.tsx).

The full component render included page filters, dynamic imports via useLoadGettingStarted, and multiple API calls that could exceed the 5s Jest timeout under load. The renderWithOnboardingLayout helper renders the docs content directly without the full component tree, making the test fast and deterministic.

This test failed 2 times on master in the last 30 days with Exceeded timeout of 5000 ms for a test.

Made with Cursor

Replace heavy MetricsTabOnboarding render with lightweight
renderWithOnboardingLayout helper, matching the pattern used by
other metrics spec files. The full component render included page
filters and dynamic imports that could exceed the 5s timeout under
load.

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
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-react-native-metrics-spec-v2 branch March 31, 2026 17:15
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