Skip to content

Commit

Permalink
fix e2e test?
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Feb 5, 2024
1 parent 7b5929a commit dcc693f
Showing 1 changed file with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ test('sends a pageload transaction with a parameterized URL', async ({ page }) =
contexts: {
trace: {
data: {
params: {
id: '456',
},
'sentry.source': 'route',
'sentry.origin': 'auto.pageload.vue',
'sentry.op': 'pageload',
'params.id': '456',
},
op: 'pageload',
origin: 'auto.pageload.vue',
Expand Down Expand Up @@ -52,23 +50,18 @@ test('sends a navigation transaction with a parameterized URL', async ({ page })
contexts: {
trace: {
data: {
params: {
id: '123',
},
'sentry.source': 'route',
'sentry.origin': 'auto.navigation.vue',
'sentry.op': 'navigation',
'params.id': '456',
},
op: 'navigation',
origin: 'auto.navigation.vue',
},
},
transaction: '/users/:id',
transaction_info: {
// So this is weird. The source is set to custom although the route doesn't have a name.
// This also only happens during a navigation. A pageload will set the source as 'route'.
// TODO: Figure out what's going on here.
source: 'custom',
source: 'route',
},
});
});
Expand Down

0 comments on commit dcc693f

Please sign in to comment.