Skip to content

Commit 83d90f7

Browse files
authored
test(nextjs): Adjust test for origin (#13985)
I assume this is due to #13763
1 parent b8162ae commit 83d90f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev-packages/e2e-tests/test-applications/nextjs-app-dir/tests/server-components.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test('Sends a transaction for a request to app router', async ({ page }) => {
1616
expect(transactionEvent.contexts?.trace).toEqual({
1717
data: expect.objectContaining({
1818
'sentry.op': 'http.server',
19-
'sentry.origin': 'auto',
19+
'sentry.origin': expect.stringMatching(/^(auto|auto\.http\.otel\.http)$/),
2020
'sentry.sample_rate': 1,
2121
'sentry.source': 'route',
2222
'http.method': 'GET',
@@ -27,7 +27,7 @@ test('Sends a transaction for a request to app router', async ({ page }) => {
2727
'otel.kind': 'SERVER',
2828
}),
2929
op: 'http.server',
30-
origin: 'auto',
30+
origin: expect.stringMatching(/^(auto|auto\.http\.otel\.http)$/),
3131
span_id: expect.any(String),
3232
status: 'ok',
3333
trace_id: expect.any(String),

0 commit comments

Comments
 (0)