Skip to content

Conversation

@nstepien
Copy link
Collaborator

@nstepien nstepien commented Mar 19, 2025

I don't think we need hasDoubleClickedRef in practice as the double click event happens after lostpointercapture, but it does happen before lostpointercapture in tests for some reason.

@nstepien nstepien self-assigned this Mar 19, 2025
@nstepien nstepien marked this pull request as ready for review March 19, 2025 12:49
@nstepien nstepien requested a review from amanmahajan7 as a code owner March 19, 2025 12:49
@codecov
Copy link

codecov bot commented Mar 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.65%. Comparing base (eacbe61) to head (14c8119).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3744   +/-   ##
=======================================
  Coverage   98.65%   98.65%           
=======================================
  Files          47       47           
  Lines        3426     3426           
  Branches      743      742    -1     
=======================================
  Hits         3380     3380           
  Misses         46       46           
Files with missing lines Coverage Δ
src/HeaderCell.tsx 97.26% <100.00%> (ø)
🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

const resizeHandle = page.elementLocator(getResizeHandle(column));

await userEvent.dblClick(resizeHandle);
await resizeHandle.dblClick();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any reason for this change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I wanted to see if the order of events would reflect actual browser behavior, as userEvent does not perform real browser/cursor actions.

@nstepien nstepien merged commit 6854aae into main Mar 19, 2025
2 checks passed
@nstepien nstepien deleted the dbl branch March 19, 2025 13:39
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.

3 participants