Skip to content

Commit 84429c7

Browse files
committed
integration test
1 parent c12e7f5 commit 84429c7

File tree

1 file changed

+3
-3
lines changed
  • dev-packages/browser-integration-tests/suites/public-api/startSpan/basic

1 file changed

+3
-3
lines changed

dev-packages/browser-integration-tests/suites/public-api/startSpan/basic/test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ sentryTest('should report finished spans as children of the root transaction', a
2424
const url = await getLocalTestPath({ testDir: __dirname });
2525
const transaction = await getFirstSentryEnvelopeRequest<SerializedEvent>(page, url);
2626

27-
const rootSpanId = transaction?.contexts?.trace?.span_id;
28-
2927
expect(transaction.spans).toHaveLength(1);
3028

3129
const span_1 = transaction.spans?.[0];
3230
expect(span_1?.description).toBe('child_span');
33-
expect(span_1?.parent_span_id).toEqual(rootSpanId);
31+
expect(span_1?.parent_span_id).toEqual(transaction?.contexts?.trace?.span_id);
32+
expect(span_1?.origin).toEqual('manual');
33+
expect(span_1?.data?.['sentry.origin']).toEqual('manual');
3434
});

0 commit comments

Comments
 (0)