Skip to content

fix(tests): deflake projectQuickLinks tests#114631

Merged
ryan953 merged 1 commit intomasterfrom
fix/flaky-test-projectQuickLinks
May 1, 2026
Merged

fix(tests): deflake projectQuickLinks tests#114631
ryan953 merged 1 commit intomasterfrom
fix/flaky-test-projectQuickLinks

Conversation

@ryan953
Copy link
Copy Markdown
Member

@ryan953 ryan953 commented May 1, 2026

Summary

  • Wrap router.location assertions in waitFor after userEvent.click to handle async route updates that were causing flaky failures in the "renders a list" test.
  • Remove unnecessary userEvent.click before userEvent.hover in the "disables link if feature is missing" test to eliminate tooltip race conditions.
  • Add waitFor to imports.

Test plan

  • CI passes for static/app/views/projectDetail/projectQuickLinks.spec.tsx

Wrap router.location assertions in waitFor after userEvent.click to
handle async route updates. Remove unnecessary click before hover in
the tooltip test to prevent race conditions.

Co-Authored-By: Claude Opus 4.6 <noreply@example.com>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 1, 2026
@ryan953 ryan953 added the Frontend: Rerun Flaky Tests Known flaky tests should be run many times, just to be safe. label May 1, 2026
@ryan953 ryan953 requested a review from a team May 1, 2026 21:58
@ryan953 ryan953 merged commit 95ac088 into master May 1, 2026
87 checks passed
@ryan953 ryan953 deleted the fix/flaky-test-projectQuickLinks branch May 1, 2026 22:41
cleptric pushed a commit that referenced this pull request May 5, 2026
## Summary
- Wrap `router.location` assertions in `waitFor` after `userEvent.click`
to handle async route updates that were causing flaky failures in the
"renders a list" test.
- Remove unnecessary `userEvent.click` before `userEvent.hover` in the
"disables link if feature is missing" test to eliminate tooltip race
conditions.
- Add `waitFor` to imports.

## Test plan
- [ ] CI passes for
`static/app/views/projectDetail/projectQuickLinks.spec.tsx`

Co-authored-by: Claude Opus 4.6 <noreply@example.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Frontend: Rerun Flaky Tests Known flaky tests should be run many times, just to be safe. Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants