Skip to content

Commit

Permalink
Prepare release 7.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cgr-smartesting committed Jun 28, 2024
1 parent 9d84825 commit 843c381
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 12 additions & 0 deletions src/user-action/createTargetedUserAction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,4 +255,16 @@ describe('createTargetedUserAction', () => {
scrollableAncestors: [],
})
})

it('returns null if element is enclosed to ignored element', () => {
const { element, domWindow } = createElementInJSDOM('<div class="rr-ignore"><span>Click Me</span></div>', '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('<div class="rr-block"><span>Click Me</span></div>', 'span')
const action = createTargetedUserAction(domWindow, mockClick(element), UserActionType.Click)
expect(action).toBeNull()
})
})

0 comments on commit 843c381

Please sign in to comment.