File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
dev-packages/browser-integration-tests/suites/public-api/captureFeedback Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import { expect } from '@playwright/test' ;
2- import type { Event , FeedbackEvent } from '@sentry/core' ;
2+ import type { Event } from '@sentry/core' ;
33import { sentryTest } from '../../../../utils/fixtures' ;
44import { getMultipleSentryEnvelopeRequests } from '../../../../utils/helpers' ;
55
@@ -11,7 +11,7 @@ sentryTest('capture user feedback when captureException is called', async ({ get
1111 expect ( data ) . toHaveLength ( 2 ) ;
1212
1313 const errorEvent = 'exception' in data [ 0 ] ? data [ 0 ] : data [ 1 ] ;
14- const feedback = ( 'exception' in data [ 0 ] ? data [ 1 ] : data [ 0 ] ) as FeedbackEvent ;
14+ const feedback = 'exception' in data [ 0 ] ? data [ 1 ] : data [ 0 ] ;
1515
1616 expect ( feedback . contexts ) . toEqual (
1717 expect . objectContaining ( {
Original file line number Diff line number Diff line change 11import { expect } from '@playwright/test' ;
2- import type { Event , FeedbackEvent } from '@sentry/core' ;
2+ import type { Event } from '@sentry/core' ;
33import { sentryTest } from '../../../../utils/fixtures' ;
44import { getMultipleSentryEnvelopeRequests } from '../../../../utils/helpers' ;
55
@@ -11,7 +11,7 @@ sentryTest('capture user feedback when captureMessage is called', async ({ getLo
1111 expect ( data ) . toHaveLength ( 2 ) ;
1212
1313 const errorEvent = 'exception' in data [ 0 ] ? data [ 0 ] : data [ 1 ] ;
14- const feedback = ( 'exception' in data [ 0 ] ? data [ 1 ] : data [ 0 ] ) as FeedbackEvent ;
14+ const feedback = 'exception' in data [ 0 ] ? data [ 1 ] : data [ 0 ] ;
1515
1616 expect ( feedback . contexts ) . toEqual (
1717 expect . objectContaining ( {
You can’t perform that action at this time.
0 commit comments