File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
dev-packages/browser-integration-tests/suites/profiling/legacyMode Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { expect } from '@playwright/test' ;
2
2
import type { Event , Profile } from '@sentry/core' ;
3
3
import { sentryTest } from '../../../utils/fixtures' ;
4
- import { properEnvelopeRequestParser , waitForTransactionRequestOnUrl } from '../../../utils/helpers' ;
4
+ import {
5
+ properEnvelopeRequestParser ,
6
+ shouldSkipTracingTest ,
7
+ waitForTransactionRequestOnUrl ,
8
+ } from '../../../utils/helpers' ;
5
9
6
10
sentryTest ( 'does not send profile envelope when document-policy is not set' , async ( { page, getLocalTestUrl } ) => {
11
+ if ( shouldSkipTracingTest ( ) ) {
12
+ // Profiling only works when tracing is enabled
13
+ sentryTest . skip ( ) ;
14
+ }
15
+
7
16
const url = await getLocalTestUrl ( { testDir : __dirname } ) ;
8
17
9
18
const req = await waitForTransactionRequestOnUrl ( page , url ) ;
@@ -16,6 +25,11 @@ sentryTest('does not send profile envelope when document-policy is not set', asy
16
25
} ) ;
17
26
18
27
sentryTest ( 'sends profile envelope in legacy mode' , async ( { page, getLocalTestUrl } ) => {
28
+ if ( shouldSkipTracingTest ( ) ) {
29
+ // Profiling only works when tracing is enabled
30
+ sentryTest . skip ( ) ;
31
+ }
32
+
19
33
const url = await getLocalTestUrl ( { testDir : __dirname , responseHeaders : { 'Document-Policy' : 'js-profiling' } } ) ;
20
34
21
35
const req = await waitForTransactionRequestOnUrl ( page , url ) ;
You can’t perform that action at this time.
0 commit comments