Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: adjust some assertions for nextjs apps
  • Loading branch information
logaretm committed Feb 3, 2026
commit 94966b7ff2fde65b9af1502323ea7f45b32f9178
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ sentryTest('logs debug messages correctly', async ({ getLocalTestUrl, page }) =>
'Sentry Logger [log]: Integration installed: LinkedErrors',
'Sentry Logger [log]: Integration installed: Dedupe',
'Sentry Logger [log]: Integration installed: HttpContext',
'Sentry Logger [log]: Integration installed: CultureContext',
'Sentry Logger [warn]: Discarded session because of missing or non-string release',
'Sentry Logger [log]: Integration installed: BrowserSession',
'test log',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ sentryTest('should capture replays (@sentry/browser export)', async ({ getLocalT
replay_type: 'session',
event_id: expect.stringMatching(/\w{32}/),
environment: 'production',
contexts: {
culture: {
locale: expect.any(String),
timezone: expect.any(String),
calendar: expect.any(String),
},
},
sdk: {
integrations: expect.arrayContaining([
'InboundFilters',
Expand Down Expand Up @@ -73,6 +80,13 @@ sentryTest('should capture replays (@sentry/browser export)', async ({ getLocalT
replay_type: 'session',
event_id: expect.stringMatching(/\w{32}/),
environment: 'production',
contexts: {
culture: {
locale: expect.any(String),
timezone: expect.any(String),
calendar: expect.any(String),
},
},
sdk: {
integrations: expect.arrayContaining([
'InboundFilters',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ sentryTest('should capture replays (@sentry-internal/replay export)', async ({ g
replay_type: 'session',
event_id: expect.stringMatching(/\w{32}/),
environment: 'production',
contexts: {
culture: {
locale: expect.any(String),
timezone: expect.any(String),
calendar: expect.any(String),
},
},
sdk: {
integrations: expect.arrayContaining([
'InboundFilters',
Expand Down Expand Up @@ -73,6 +80,13 @@ sentryTest('should capture replays (@sentry-internal/replay export)', async ({ g
replay_type: 'session',
event_id: expect.stringMatching(/\w{32}/),
environment: 'production',
contexts: {
culture: {
locale: expect.any(String),
timezone: expect.any(String),
calendar: expect.any(String),
},
},
sdk: {
integrations: expect.arrayContaining([
'InboundFilters',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test('Sends a pageload transaction', async ({ page }) => {
transaction: '/',
transaction_info: { source: 'url' },
type: 'transaction',
contexts: {
contexts: expect.objectContaining({
react: {
version: expect.any(String),
},
Expand All @@ -40,7 +40,7 @@ test('Sends a pageload transaction', async ({ page }) => {
'sentry.source': 'url',
}),
},
},
}),
request: {
headers: {
'User-Agent': expect.any(String),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test('Sends a pageload transaction', async ({ page }) => {
transaction: '/',
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
contexts: expect.objectContaining({
react: {
version: expect.any(String),
},
Expand All @@ -40,7 +40,7 @@ test('Sends a pageload transaction', async ({ page }) => {
'sentry.source': 'route',
}),
},
},
}),
request: {
headers: {
'User-Agent': expect.any(String),
Expand Down Expand Up @@ -70,7 +70,7 @@ test('Sends a navigation transaction', async ({ page }) => {
transaction: '/user/[id]',
transaction_info: { source: 'route' },
type: 'transaction',
contexts: {
contexts: expect.objectContaining({
react: {
version: expect.any(String),
},
Expand Down Expand Up @@ -98,7 +98,7 @@ test('Sends a navigation transaction', async ({ page }) => {
},
],
},
},
}),
request: {
headers: {
'User-Agent': expect.any(String),
Expand Down
Loading