Skip to content

Commit 6519308

Browse files
Update test/browser/column/renderEditCell.test.tsx
Co-authored-by: Nicolas Stepien <[email protected]>
1 parent 1b9a13a commit 6519308

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/browser/column/renderEditCell.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ describe('Editor', () => {
7575
expect(onSave).not.toHaveBeenCalled();
7676
const saveButton = page.getByRole('button', { name: 'save' });
7777

78-
// await userEvent.click() triggers both mousedown and click, but without delay,
79-
// which isn't realistic, and isn't enough to trigger outside click detection
78+
// without delay, `click()` triggers both `mousedown` and `click` events
79+
// too quickly for outside clicks to be detected
8080
await userEvent.click(saveButton, { delay: 10 });
8181

8282
expect(onSave).toHaveBeenCalledTimes(1);

0 commit comments

Comments
 (0)