fix: Touch gestures should count as card interactions (#2265)

- Closes: #2245
This commit is contained in:
Dermot Duffy authored and GitHub committed 2025-12-08 18:43:28 -08:00
1 parent bbdf96474e
commit a241e02594
2 files changed
+32

No files matched your search

@@ -119,6 +119,14 @@ describe('CardElementManager', () => {
'action',
api.getInteractionManager().reportInteraction,
);
expect(addEventListener).toBeCalledWith(
'touchstart',
api.getInteractionManager().reportInteraction,
);
expect(addEventListener).toBeCalledWith(
'touchmove',
api.getInteractionManager().reportInteraction,
);
expect(windowAddEventListener).toBeCalledWith('location-changed', expect.anything());
expect(windowAddEventListener).toBeCalledWith('popstate', expect.anything());
@@ -171,6 +179,14 @@ describe('CardElementManager', () => {
'action',
api.getInteractionManager().reportInteraction,
);
expect(removeEventListener).toBeCalledWith(
'touchstart',
api.getInteractionManager().reportInteraction,
);
expect(removeEventListener).toBeCalledWith(
'touchmove',
api.getInteractionManager().reportInteraction,
);
expect(windowRemoveEventListener).toBeCalledWith(
'location-changed',
expect.anything(),