Skip to content

Commit

Permalink
make un-brittle
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed May 29, 2024
1 parent 66d096a commit 9c88656
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test('Captures a pageload transaction', async ({ page }) => {

const transactionEvent = await transactionEventPromise;
expect(transactionEvent.contexts?.trace).toEqual({
data: {
data: expect.objectContaining({
deviceMemory: expect.any(String),
effectiveConnectionType: expect.any(String),
hardwareConcurrency: expect.any(String),
Expand All @@ -19,7 +19,7 @@ test('Captures a pageload transaction', async ({ page }) => {
'sentry.origin': 'auto.pageload.react.reactrouter_v6',
'sentry.sample_rate': 1,
'sentry.source': 'route',
},
}),
op: 'pageload',
span_id: expect.any(String),
trace_id: expect.any(String),
Expand Down Expand Up @@ -119,7 +119,7 @@ test('Captures a navigation transaction', async ({ page }) => {

const transactionEvent = await transactionEventPromise;
expect(transactionEvent.contexts?.trace).toEqual({
data: {
data: expect.objectContaining({
deviceMemory: expect.any(String),
effectiveConnectionType: expect.any(String),
hardwareConcurrency: expect.any(String),
Expand All @@ -128,7 +128,7 @@ test('Captures a navigation transaction', async ({ page }) => {
'sentry.origin': 'auto.navigation.react.reactrouter_v6',
'sentry.sample_rate': 1,
'sentry.source': 'route',
},
}),
op: 'navigation',
span_id: expect.any(String),
trace_id: expect.any(String),
Expand Down

0 comments on commit 9c88656

Please sign in to comment.