Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3772 +/- ##
===========================================
- Coverage 100.00% 97.84% -2.16%
===========================================
Files 46 42 -4
Lines 3200 1253 -1947
Branches 414 348 -66
===========================================
- Hits 3200 1226 -1974
- Misses 0 27 +27 🚀 New features to boost your workflow:
|
| } | ||
| } | ||
|
|
||
| export async function tabIntoGrid() { |
There was a problem hiding this comment.
Added this utility so we can control tabbing into the grid
| const grid = getGrid(); | ||
| await expect.element(grid).toHaveStyle({ gridTemplateColumns: '639.328px 639.328px 639.344px' }); | ||
|
|
||
| function testGridTemplateColumns(chrome: string, firefox: string, firefoxCI = firefox) { |
There was a problem hiding this comment.
Is there a better way? I initially thought about using toBeCloseTo but FF in CI has completely different column size. No idea why
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - uses: actions/setup-node@v5 | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
There was a problem hiding this comment.
started failing recently
https://github.com/adazzle/react-data-grid/actions/runs/17775660504/job/50710625456
There was a problem hiding this comment.
| await userEvent.tab(); | ||
| await expect.element(editor).not.toBeInTheDocument(); | ||
| expect(getCellsAtRowIndex(0)[0]).toHaveTextContent(/^12$/); | ||
| expect(getCellsAtRowIndex(0)[0]).toHaveTextContent(12); |
There was a problem hiding this comment.
Should we not keep the strict check?
| await userEvent.click(getCellsAtRowIndex(0)[0]); | ||
| await userEvent.keyboard('123{enter}'); | ||
| expect(getCellsAtRowIndex(0)[0]).toHaveTextContent(/^1123$/); | ||
| // TODO: await userEvent.keyboard('123{enter}'); fails in FF |
There was a problem hiding this comment.
Sounds like a bug in RDG no?
There was a problem hiding this comment.
Works fine in FF when I tested. Test is failing for some reason
| expect(onColumnResize).toHaveBeenCalledExactlyOnceWith( | ||
| expect.objectContaining(columns[1]), | ||
| 327.703125 | ||
| expect.toSatisfy((width) => (width >= 327.7 && width <= 327.9) || width === 400) |
There was a problem hiding this comment.
Could add comment explaining this
| firefox, | ||
| firefoxCI |
There was a problem hiding this comment.
Why is it so different in CI? 🤔
Co-authored-by: Nicolas Stepien <567105+nstepien@users.noreply.github.com>
Co-authored-by: Nicolas Stepien <567105+nstepien@users.noreply.github.com>
* Run tests in FF * Fix editor test, use istanbul for coverage * Remove optimizeDeps * revert 1 change * Fix keyboard tests * Revert * Fix rowHeight tests * Fix focus in FF * headless * ESLint * Tweak focus logic * Fix test * Fix test in FF * Revert firefox workaround * try beta version * Revert "try beta version" This reverts commit a00f60e. * Try pinning vitest * Revert "Try pinning vitest" This reverts commit faafac2. * Revrt timeout * try `maxWorkers` * `maxWorkers: 4,` * increate testTimeout * try beta * Fix grouping test * Fix a few tests * Format * Use stable version * -1 * -1 * -1 * -2 * tryl gridcell role * biome * Remove timeout * Does this work? * Set maxWorkers = 1 * revert a few changes * Revert 1 more change * one more * Revert a few more changes * Fix resizable test * Add speciial case for firefox CI * revert 1 change * Fix test * Revert accidental change * tweak * Use SHA * remove `react-dnd` pattern * Disable `fileParallelism` * Check chrome explicitly * Use strick check * Add a comment * Update test/browser/column/renderEditCell.test.tsx Co-authored-by: Nicolas Stepien <567105+nstepien@users.noreply.github.com> * Update test/browser/column/renderEditCell.test.tsx Co-authored-by: Nicolas Stepien <567105+nstepien@users.noreply.github.com> --------- Co-authored-by: Nicolas Stepien <567105+nstepien@users.noreply.github.com>
Tests in FF timeout when more than one worker is used. Probably a bug
https://vitest.dev/config/#fileparallelism