Skip to content

Commit 3781003

Browse files
author
Luca Forstner
committed
tests
1 parent 816692e commit 3781003

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

dev-packages/browser-integration-tests/suites/public-api/debug/test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ sentryTest('logs debug messages correctly', async ({ getLocalTestUrl, page }) =>
3333
'Sentry Logger [log]: Integration installed: LinkedErrors',
3434
'Sentry Logger [log]: Integration installed: Dedupe',
3535
'Sentry Logger [log]: Integration installed: HttpContext',
36+
'Sentry Logger [log]: Integration installed: BrowserSession',
3637
'Sentry Logger [warn]: Discarded session because of missing or non-string release',
3738
'test log',
3839
]

dev-packages/browser-integration-tests/suites/replay/captureReplay/test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ sentryTest('should capture replays (@sentry/browser export)', async ({ getLocalT
3434
event_id: expect.stringMatching(/\w{32}/),
3535
environment: 'production',
3636
sdk: {
37-
integrations: [
37+
integrations: expect.arrayContaining([
3838
'InboundFilters',
3939
'FunctionToString',
4040
'BrowserApiErrors',
@@ -43,8 +43,9 @@ sentryTest('should capture replays (@sentry/browser export)', async ({ getLocalT
4343
'LinkedErrors',
4444
'Dedupe',
4545
'HttpContext',
46+
'BrowserSession',
4647
'Replay',
47-
],
48+
]),
4849
version: SDK_VERSION,
4950
name: 'sentry.javascript.browser',
5051
},
@@ -71,7 +72,7 @@ sentryTest('should capture replays (@sentry/browser export)', async ({ getLocalT
7172
event_id: expect.stringMatching(/\w{32}/),
7273
environment: 'production',
7374
sdk: {
74-
integrations: [
75+
integrations: expect.arrayContaining([
7576
'InboundFilters',
7677
'FunctionToString',
7778
'BrowserApiErrors',
@@ -80,8 +81,9 @@ sentryTest('should capture replays (@sentry/browser export)', async ({ getLocalT
8081
'LinkedErrors',
8182
'Dedupe',
8283
'HttpContext',
84+
'BrowserSession',
8385
'Replay',
84-
],
86+
]),
8587
version: SDK_VERSION,
8688
name: 'sentry.javascript.browser',
8789
},

dev-packages/browser-integration-tests/suites/replay/captureReplayFromReplayPackage/test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ sentryTest('should capture replays (@sentry-internal/replay export)', async ({ g
3434
event_id: expect.stringMatching(/\w{32}/),
3535
environment: 'production',
3636
sdk: {
37-
integrations: [
37+
integrations: expect.arrayContaining([
3838
'InboundFilters',
3939
'FunctionToString',
4040
'BrowserApiErrors',
@@ -43,8 +43,9 @@ sentryTest('should capture replays (@sentry-internal/replay export)', async ({ g
4343
'LinkedErrors',
4444
'Dedupe',
4545
'HttpContext',
46+
'BrowserSession',
4647
'Replay',
47-
],
48+
]),
4849
version: SDK_VERSION,
4950
name: 'sentry.javascript.browser',
5051
},
@@ -71,7 +72,7 @@ sentryTest('should capture replays (@sentry-internal/replay export)', async ({ g
7172
event_id: expect.stringMatching(/\w{32}/),
7273
environment: 'production',
7374
sdk: {
74-
integrations: [
75+
integrations: expect.arrayContaining([
7576
'InboundFilters',
7677
'FunctionToString',
7778
'BrowserApiErrors',
@@ -80,8 +81,9 @@ sentryTest('should capture replays (@sentry-internal/replay export)', async ({ g
8081
'LinkedErrors',
8182
'Dedupe',
8283
'HttpContext',
84+
'BrowserSession',
8385
'Replay',
84-
],
86+
]),
8587
version: SDK_VERSION,
8688
name: 'sentry.javascript.browser',
8789
},

dev-packages/browser-integration-tests/utils/replayEventTemplates.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const DEFAULT_REPLAY_EVENT = {
1616
event_id: expect.stringMatching(/\w{32}/),
1717
environment: 'production',
1818
sdk: {
19-
integrations: [
19+
integrations: expect.arrayContaining([
2020
'InboundFilters',
2121
'FunctionToString',
2222
'BrowserApiErrors',
@@ -25,8 +25,9 @@ const DEFAULT_REPLAY_EVENT = {
2525
'LinkedErrors',
2626
'Dedupe',
2727
'HttpContext',
28+
'BrowserSession',
2829
'Replay',
29-
],
30+
]),
3031
version: SDK_VERSION,
3132
name: 'sentry.javascript.browser',
3233
},

dev-packages/e2e-tests/test-applications/astro-4/tests/errors.client.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ test.describe('client-side errors', () => {
5959
'LinkedErrors',
6060
'Dedupe',
6161
'HttpContext',
62+
'BrowserSession',
6263
'BrowserTracing',
6364
]),
6465
name: 'sentry.javascript.astro',

0 commit comments

Comments
 (0)