Skip to content

Commit 5e8300b

Browse files
committed
fix 2 more e2e tests
1 parent b44e790 commit 5e8300b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

dev-packages/e2e-tests/test-applications/react-create-browser-router/tests/transactions.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ test('Captures a navigation transaction', async ({ page }) => {
5858
'sentry.sample_rate': 1,
5959
'sentry.source': 'route',
6060
}),
61+
links: [
62+
{
63+
attributes: {
64+
'sentry.link.type': 'previous_trace',
65+
},
66+
sampled: true,
67+
span_id: expect.stringMatching(/[a-f0-9]{16}/),
68+
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
69+
},
70+
],
6171
op: 'navigation',
6272
span_id: expect.stringMatching(/[a-f0-9]{16}/),
6373
trace_id: expect.stringMatching(/[a-f0-9]{32}/),

dev-packages/e2e-tests/test-applications/react-create-memory-router/tests/transactions.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ test('Captures a navigation transaction', async ({ page }) => {
6161
'sentry.link.type': 'previous_trace',
6262
},
6363
sampled: true,
64-
span_id: 'ab3fd8c9ce9d134a',
65-
trace_id: 'ee68b12db60a4aca9da1ac2ceac3f55d',
64+
span_id: expect.stringMatching(/[a-f0-9]{16}/),
65+
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
6666
},
6767
],
6868
op: 'navigation',

0 commit comments

Comments
 (0)