File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
dev-packages/browser-integration-tests
suites/tracing/request/fetch-with-no-active-span Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { expect } from '@playwright/test' ;
2
2
3
3
import { sentryTest } from '../../../../utils/fixtures' ;
4
- import { shouldSkipTracingTest } from '../../../../utils/helpers' ;
4
+ import { envelopeUrlRegex , shouldSkipTracingTest } from '../../../../utils/helpers' ;
5
5
6
6
sentryTest (
7
7
'there should be no span created for fetch requests with no active span' ,
@@ -14,7 +14,7 @@ sentryTest(
14
14
15
15
let requestCount = 0 ;
16
16
page . on ( 'request' , request => {
17
- expect ( request . url ( ) ) . not . toContain ( url ) ;
17
+ expect ( envelopeUrlRegex . test ( request . url ( ) ) ) . toBe ( false ) ;
18
18
requestCount ++ ;
19
19
} ) ;
20
20
Original file line number Diff line number Diff line change 1
1
import type { Page , Request } from '@playwright/test' ;
2
2
import type { EnvelopeItemType , Event , EventEnvelopeHeaders } from '@sentry/types' ;
3
3
4
- const envelopeUrlRegex = / \. s e n t r y \. i o \/ a p i \/ \d + \/ e n v e l o p e \/ / ;
4
+ export const envelopeUrlRegex = / \. s e n t r y \. i o \/ a p i \/ \d + \/ e n v e l o p e \/ / ;
5
5
6
6
export const envelopeParser = ( request : Request | null ) : unknown [ ] => {
7
7
// https://develop.sentry.dev/sdk/envelopes/
You can’t perform that action at this time.
0 commit comments