Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Oct 24, 2023
1 parent 66bc2c7 commit 22e90cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ module.exports = {
node: true,
},
},
{
files: 'cypress/**/*',
globals: {
cy: true,
},
},
],
root: true,
}
10 changes: 1 addition & 9 deletions cypress/e2e/capture.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Event capture', () => {
sessionRecording: given.sessionRecording,
supportedCompression: given.supportedCompression,
excludedDomains: [],
autocaptureExceptions: true,
autocaptureExceptions: false,
},
}).as('decide')

Expand Down Expand Up @@ -53,14 +53,6 @@ describe('Event capture', () => {
cy.phCaptures().should('include', 'custom-event')
})

it('captures exceptions', () => {
start()

cy.get('[data-cy-exception-button]').click()
cy.phCaptures().should('have.length', 3)
cy.phCaptures().should('include', '$exception')
})

describe('autocapture config', () => {
it('dont capture click when configured not to', () => {
given('options', () => ({
Expand Down

0 comments on commit 22e90cb

Please sign in to comment.