File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
packages/integration-tests/suites/tracing/browsertracing/meta Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 22 < head >
33 < meta charset ="utf-8 " />
44 < meta name ="sentry-trace " content ="12312012123120121231201212312012-1121201211212012-1 " />
5+ < meta name ="baggage " content ="sentry-version=2.1.12 " />
56 </ head >
67</ html >
Original file line number Diff line number Diff line change 11import { expect } from '@playwright/test' ;
2- import { Event } from '@sentry/types' ;
2+ import { Event , EventEnvelopeHeaders } from '@sentry/types' ;
33
44import { sentryTest } from '../../../../utils/fixtures' ;
5- import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers' ;
5+ import { envelopeHeaderRequestParser , getFirstSentryEnvelopeRequest } from '../../../../utils/helpers' ;
66
77sentryTest (
88 'should create a pageload transaction based on `sentry-trace` <meta>' ,
@@ -21,6 +21,20 @@ sentryTest(
2121 } ,
2222) ;
2323
24+ // TODO this we can't really test until we actually propagate sentry- entries in baggage
25+ // skipping for now but this must be adjusted later on
26+ sentryTest . skip (
27+ 'should pick up `baggage` <meta> tag and propagate the content in transaction' ,
28+ async ( { getLocalTestPath, page } ) => {
29+ const url = await getLocalTestPath ( { testDir : __dirname } ) ;
30+
31+ const envHeader = await getFirstSentryEnvelopeRequest < EventEnvelopeHeaders > ( page , url , envelopeHeaderRequestParser ) ;
32+
33+ expect ( envHeader . baggage ) . toBeDefined ( ) ;
34+ expect ( envHeader . baggage ) . toEqual ( '{version:2.1.12}' ) ;
35+ } ,
36+ ) ;
37+
2438sentryTest (
2539 "should create a navigation that's not influenced by `sentry-trace` <meta>" ,
2640 async ( { getLocalTestPath, page } ) => {
You can’t perform that action at this time.
0 commit comments