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 1
1
import { expect } from '@playwright/test' ;
2
- import type { Event , FeedbackEvent } from '@sentry/core' ;
2
+ import type { Event } from '@sentry/core' ;
3
3
import { sentryTest } from '../../../../utils/fixtures' ;
4
4
import { getMultipleSentryEnvelopeRequests } from '../../../../utils/helpers' ;
5
5
@@ -11,7 +11,7 @@ sentryTest('capture user feedback when captureException is called', async ({ get
11
11
expect ( data ) . toHaveLength ( 2 ) ;
12
12
13
13
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 ] ;
15
15
16
16
expect ( feedback . contexts ) . toEqual (
17
17
expect . objectContaining ( {
Original file line number Diff line number Diff line change 1
1
import { expect } from '@playwright/test' ;
2
- import type { Event , FeedbackEvent } from '@sentry/core' ;
2
+ import type { Event } from '@sentry/core' ;
3
3
import { sentryTest } from '../../../../utils/fixtures' ;
4
4
import { getMultipleSentryEnvelopeRequests } from '../../../../utils/helpers' ;
5
5
@@ -11,7 +11,7 @@ sentryTest('capture user feedback when captureMessage is called', async ({ getLo
11
11
expect ( data ) . toHaveLength ( 2 ) ;
12
12
13
13
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 ] ;
15
15
16
16
expect ( feedback . contexts ) . toEqual (
17
17
expect . objectContaining ( {
You can’t perform that action at this time.
0 commit comments