diff --git a/src/internal/analytics/__tests__/components/analytics-funnel.test.tsx b/src/internal/analytics/__tests__/components/analytics-funnel.test.tsx index 080d598481..bd55fdf4b1 100644 --- a/src/internal/analytics/__tests__/components/analytics-funnel.test.tsx +++ b/src/internal/analytics/__tests__/components/analytics-funnel.test.tsx @@ -489,7 +489,7 @@ describe('AnalyticsFunnelSubStep', () => { }); }); - test('calls funnelSubStepComplete with the correct arguments when the substep loses focus', async () => { + test('calls funnelSubStepComplete with the correct arguments when the substep loses focus by keyboard', async () => { const ChildComponent = () => { const { subStepRef, funnelSubStepProps } = useFunnelSubStep(); @@ -529,8 +529,62 @@ describe('AnalyticsFunnelSubStep', () => { subStepNameSelector: expect.any(String), }); }); + + test('calls funnelSubStepComplete with the correct arguments when the substep loses focus by mouse', async () => { + const ChildComponent = () => { + const { subStepRef, funnelSubStepProps } = useFunnelSubStep(); + + return ( +