Skip to content

Resolve flaky test#3999

Merged
nstepien merged 2 commits intomainfrom
deflak
Mar 10, 2026
Merged

Resolve flaky test#3999
nstepien merged 2 commits intomainfrom
deflak

Conversation

@nstepien
Copy link
Copy Markdown
Collaborator

@nstepien nstepien commented Mar 10, 2026

This should resolve this flaky test failure:
https://github.com/Comcast/react-data-grid/actions/runs/22867372688/job/66337693800
I couldn't figure out the exact reason why this was flaky, just that sometimes the grid only scrolled from top: 0px to top: 9px instead of top: 1500px.
My hunch is that it's related to the editor's autoFocus attributew, or to keyboard interactions from await userEvent.keyboard('abc');.

I've also removed trace from vitest's config, as it slows down tests when enabled, and leads to slightly different timing behavior between CI and local dev.
It can be re-enabled as needed, to debug, but I don't think we need to keep it enabled in general.

@nstepien nstepien self-assigned this Mar 10, 2026
@nstepien nstepien marked this pull request as ready for review March 10, 2026 00:36
@nstepien nstepien requested a review from amanmahajan7 as a code owner March 10, 2026 00:36
Comment on lines +10 to +11
const col1Editor = page.getByRole('spinbutton', { name: 'col1-editor' });
const col2Editor = page.getByRole('textbox', { name: 'col2-editor' });
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

good way to dedupe

@nstepien nstepien merged commit 5e1ac44 into main Mar 10, 2026
2 checks passed
@nstepien nstepien deleted the deflak branch March 10, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants