diff --git a/CHANGELOG.md b/CHANGELOG.md index af83388..d602b51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [7.0.2-Unreleased](https://github.com/Smartesting/gravity-data-collector/compare/v7.0.1...v7.0.2) +## [7.0.2](https://github.com/Smartesting/gravity-data-collector/compare/v7.0.1...v7.0.2) ### Info diff --git a/src/user-action/createTargetedUserAction.test.ts b/src/user-action/createTargetedUserAction.test.ts index 83dcb22..1f014c8 100644 --- a/src/user-action/createTargetedUserAction.test.ts +++ b/src/user-action/createTargetedUserAction.test.ts @@ -255,4 +255,16 @@ describe('createTargetedUserAction', () => { scrollableAncestors: [], }) }) + + it('returns null if element is enclosed to ignored element', () => { + const { element, domWindow } = createElementInJSDOM('
Click Me
', 'span') + const action = createTargetedUserAction(domWindow, mockClick(element), UserActionType.Click) + expect(action).toBeNull() + }) + + it('returns null if element is enclosed to blocked element', () => { + const { element, domWindow } = createElementInJSDOM('
Click Me
', 'span') + const action = createTargetedUserAction(domWindow, mockClick(element), UserActionType.Click) + expect(action).toBeNull() + }) })