Skip to content

Commit 1174c17

Browse files
committed
fix e2e test
1 parent a0d52d7 commit 1174c17

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

dev-packages/e2e-tests/test-applications/tanstackstart-react/tests/routing-instrumentation.test.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { waitForTransaction } from '@sentry-internal/test-utils';
55
// so here we just do a basic check to verify that the integration is automatically enabled if tracing is enabled
66
test('sends a pageload transaction', async ({ page }) => {
77
const transactionPromise = waitForTransaction('tanstackstart-react', async transactionEvent => {
8-
console.log('transactionEvent', transactionEvent);
98
return !!transactionEvent?.transaction && transactionEvent.contexts?.trace?.op === 'pageload';
109
});
1110

@@ -18,21 +17,16 @@ test('sends a pageload transaction', async ({ page }) => {
1817
trace: {
1918
data: {
2019
'sentry.source': 'route',
21-
'sentry.origin': 'auto.pageload.react.tanstackstart_react',
20+
'sentry.origin': 'auto.pageload.react.tanstack_router',
2221
'sentry.op': 'pageload',
2322
},
2423
op: 'pageload',
25-
origin: 'auto.pageload.react.tanstackstart_react',
24+
origin: 'auto.pageload.react.tanstack_router',
2625
},
2726
},
2827
transaction: '/',
2928
transaction_info: {
3029
source: 'route',
3130
},
32-
spans: expect.arrayContaining([
33-
expect.objectContaining({
34-
description: 'loading-home',
35-
}),
36-
]),
3731
});
3832
});

0 commit comments

Comments
 (0)