Skip to content

Commit b5be6ad

Browse files
committed
activate and fix meta tag integration test
1 parent 3b65776 commit b5be6ad

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/integration-tests/suites/tracing/browsertracing/meta/template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
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" />
5+
<meta name="baggage" content="sentry-release=2.1.12" />
66
</head>
77
</html>

packages/integration-tests/suites/tracing/browsertracing/meta/test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ 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
2624
sentryTest(
2725
'should pick up `baggage` <meta> tag and propagate the content in transaction',
2826
async ({ getLocalTestPath, page }) => {
@@ -31,7 +29,11 @@ sentryTest(
3129
const envHeader = await getFirstSentryEnvelopeRequest<EventEnvelopeHeaders>(page, url, envelopeHeaderRequestParser);
3230

3331
expect(envHeader.trace).toBeDefined();
34-
expect(envHeader.trace).toEqual('{version:2.1.12}');
32+
expect(envHeader.trace).toMatchObject({
33+
public_key: 'public',
34+
trace_id: expect.any(String),
35+
release: '2.1.12',
36+
});
3537
},
3638
);
3739

0 commit comments

Comments
 (0)