Skip to content

fix(test): stabilize flaky SpansSearchBar onSearch test#111904

Merged
JoshuaKGoldberg merged 4 commits intomasterfrom
fix/flaky-spans-search-bar-spec
Apr 8, 2026
Merged

fix(test): stabilize flaky SpansSearchBar onSearch test#111904
JoshuaKGoldberg merged 4 commits intomasterfrom
fix/flaky-spans-search-bar-spec

Conversation

@JoshuaKGoldberg
Copy link
Copy Markdown
Member

@JoshuaKGoldberg JoshuaKGoldberg commented Mar 31, 2026

Fixes the flaky onSearch and onClose tests by adding more manual waiting: first an explicit click to focus the element, then making sure the dropdown is populated before hitting enter. I think these more granular waits give the component's async behaviors more time to settle between steps.

Fixes ENG-7205

Made with Cursor

@JoshuaKGoldberg JoshuaKGoldberg added Scope: Frontend Automatically applied to PRs that change frontend components Frontend: Rerun Flaky Tests Known flaky tests should be run many times, just to be safe. labels Mar 31, 2026
@JoshuaKGoldberg JoshuaKGoldberg force-pushed the fix/flaky-spans-search-bar-spec branch from 8b59ab0 to c6a61f7 Compare March 31, 2026 17:39
@JoshuaKGoldberg JoshuaKGoldberg changed the title fix(test): Fix flaky SpansSearchBar onSearch test fix(test): stabilize flaky SpansSearchBar onSearch test Mar 31, 2026
@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@JoshuaKGoldberg JoshuaKGoldberg requested review from a team as code owners April 7, 2026 14:02
@JoshuaKGoldberg JoshuaKGoldberg requested review from a team as code owners April 7, 2026 14:03
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 7, 2026
@github-actions

This comment was marked as outdated.

@sentry

This comment was marked as outdated.

@JoshuaKGoldberg JoshuaKGoldberg changed the base branch from fix/flaky-test-rerun-infra to master April 7, 2026 14:07
@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as draft April 7, 2026 14:09
@JoshuaKGoldberg

This comment was marked as outdated.

JoshuaKGoldberg and others added 2 commits April 7, 2026 10:12
Consolidate multiple separate userEvent calls into a single
userEvent.type call with inline {enter} sequences. The separate calls
caused flaky timeouts because each convenience API call created a new
user-event session, losing focus context between the filter key entry
and value entry steps. Using a single type call keeps the interaction
in one session, matching the pattern used in the SearchQueryBuilder's
own test suite.

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
Made-with: Cursor
Made-with: Cursor
@JoshuaKGoldberg JoshuaKGoldberg force-pushed the fix/flaky-spans-search-bar-spec branch from 340ff8c to 58ff99b Compare April 7, 2026 14:13
@JoshuaKGoldberg JoshuaKGoldberg removed request for a team April 7, 2026 14:14
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