-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8602 from getsentry/prepare-release/7.60.0
meta(changelog): Update changelog for 7.60.0
- Loading branch information
Showing
94 changed files
with
587 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
packages/browser-integration-tests/loader-suites/loader/noOnLoad/captureException/test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import { expect } from '@playwright/test'; | ||
|
||
import { sentryTest } from '../../../../utils/fixtures'; | ||
import { envelopeRequestParser, waitForErrorRequest } from '../../../../utils/helpers'; | ||
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers'; | ||
|
||
sentryTest('captureException works', async ({ getLocalTestUrl, page }) => { | ||
const req = waitForErrorRequest(page); | ||
|
||
const url = await getLocalTestUrl({ testDir: __dirname }); | ||
await page.goto(url); | ||
const req = await waitForErrorRequestOnUrl(page, url); | ||
|
||
const eventData = envelopeRequestParser(await req); | ||
const eventData = envelopeRequestParser(req); | ||
|
||
expect(eventData.message).toBe('Test exception'); | ||
}); |
8 changes: 3 additions & 5 deletions
8
...ages/browser-integration-tests/loader-suites/loader/noOnLoad/customOnErrorHandler/test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import { expect } from '@playwright/test'; | ||
|
||
import { sentryTest } from '../../../../utils/fixtures'; | ||
import { envelopeRequestParser, waitForErrorRequest } from '../../../../utils/helpers'; | ||
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers'; | ||
|
||
sentryTest('error handler works with a recursive custom error handler', async ({ getLocalTestUrl, page }) => { | ||
const req = waitForErrorRequest(page); | ||
|
||
const url = await getLocalTestUrl({ testDir: __dirname }); | ||
await page.goto(url); | ||
const req = await waitForErrorRequestOnUrl(page, url); | ||
|
||
const eventData = envelopeRequestParser(await req); | ||
const eventData = envelopeRequestParser(req); | ||
expect(eventData.exception?.values?.length).toBe(1); | ||
expect(eventData.exception?.values?.[0]?.value).toBe('window.doSomethingWrong is not a function'); | ||
}); |
8 changes: 3 additions & 5 deletions
8
packages/browser-integration-tests/loader-suites/loader/noOnLoad/errorHandler/test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import { expect } from '@playwright/test'; | ||
|
||
import { sentryTest } from '../../../../utils/fixtures'; | ||
import { envelopeRequestParser,waitForErrorRequest } from '../../../../utils/helpers'; | ||
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers'; | ||
|
||
sentryTest('error handler works', async ({ getLocalTestUrl, page }) => { | ||
const req = waitForErrorRequest(page); | ||
|
||
const url = await getLocalTestUrl({ testDir: __dirname }); | ||
await page.goto(url); | ||
const req = await waitForErrorRequestOnUrl(page, url); | ||
|
||
const eventData = envelopeRequestParser(await req); | ||
const eventData = envelopeRequestParser(req); | ||
expect(eventData.exception?.values?.length).toBe(1); | ||
expect(eventData.exception?.values?.[0]?.value).toBe('window.doSomethingWrong is not a function'); | ||
}); |
8 changes: 3 additions & 5 deletions
8
packages/browser-integration-tests/loader-suites/loader/noOnLoad/errorHandlerLater/test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 7 additions & 5 deletions
12
packages/browser-integration-tests/loader-suites/loader/noOnLoad/pageloadTransaction/test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
packages/browser-integration-tests/loader-suites/loader/onLoad/captureException/test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import { expect } from '@playwright/test'; | ||
|
||
import { sentryTest } from '../../../../utils/fixtures'; | ||
import { envelopeRequestParser, waitForErrorRequest } from '../../../../utils/helpers'; | ||
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers'; | ||
|
||
sentryTest('captureException works', async ({ getLocalTestUrl, page }) => { | ||
const req = waitForErrorRequest(page); | ||
|
||
const url = await getLocalTestUrl({ testDir: __dirname }); | ||
await page.goto(url); | ||
const req = await waitForErrorRequestOnUrl(page, url); | ||
|
||
const eventData = envelopeRequestParser(await req); | ||
const eventData = envelopeRequestParser(req); | ||
|
||
expect(eventData.message).toBe('Test exception'); | ||
}); |
8 changes: 3 additions & 5 deletions
8
...es/browser-integration-tests/loader-suites/loader/onLoad/captureExceptionInOnLoad/test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import { expect } from '@playwright/test'; | ||
|
||
import { sentryTest } from '../../../../utils/fixtures'; | ||
import { envelopeRequestParser, waitForErrorRequest } from '../../../../utils/helpers'; | ||
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers'; | ||
|
||
sentryTest('captureException works inside of onLoad', async ({ getLocalTestUrl, page }) => { | ||
const req = waitForErrorRequest(page); | ||
|
||
const url = await getLocalTestUrl({ testDir: __dirname }); | ||
await page.goto(url); | ||
const req = await waitForErrorRequestOnUrl(page, url); | ||
|
||
const eventData = envelopeRequestParser(await req); | ||
const eventData = envelopeRequestParser(req); | ||
|
||
expect(eventData.message).toBe('Test exception'); | ||
}); |
12 changes: 7 additions & 5 deletions
12
packages/browser-integration-tests/loader-suites/loader/onLoad/customBrowserTracing/test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
packages/browser-integration-tests/loader-suites/loader/onLoad/errorHandler/test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
packages/browser-integration-tests/loader-suites/loader/onLoad/errorHandlerLater/test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 7 additions & 5 deletions
12
packages/browser-integration-tests/loader-suites/loader/onLoad/pageloadTransaction/test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...ges/browser-integration-tests/suites/public-api/captureException/linkedErrrors/subject.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const wat = new Error(`This is a very long message that should be truncated and will be, | ||
this is a very long message that should be truncated and will be, | ||
this is a very long message that should be truncated and will be, | ||
this is a very long message that should be truncated and will be, | ||
this is a very long message that should be truncated and will be`); | ||
|
||
wat.cause = new Error(`This is a very long message that should be truncated and hopefully will be, | ||
this is a very long message that should be truncated and hopefully will be, | ||
this is a very long message that should be truncated and hopefully will be, | ||
this is a very long message that should be truncated and hopefully will be, | ||
this is a very long message that should be truncated and hopefully will be,`); | ||
|
||
Sentry.captureException(wat); |
41 changes: 41 additions & 0 deletions
41
packages/browser-integration-tests/suites/public-api/captureException/linkedErrrors/test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { expect } from '@playwright/test'; | ||
import type { Event } from '@sentry/types'; | ||
|
||
import { sentryTest } from '../../../../utils/fixtures'; | ||
import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers'; | ||
|
||
sentryTest('should capture a linked error with messages', async ({ getLocalTestPath, page }) => { | ||
const url = await getLocalTestPath({ testDir: __dirname }); | ||
|
||
const eventData = await getFirstSentryEnvelopeRequest<Event>(page, url); | ||
|
||
expect(eventData.exception?.values).toHaveLength(2); | ||
expect(eventData.exception?.values?.[0]).toMatchObject({ | ||
type: 'Error', | ||
value: `This is a very long message that should be truncated and hopefully will be, | ||
this is a very long message that should be truncated and hopefully will be, | ||
this is a very long message that should be truncated and hopefully will be, | ||
this is a very long me...`, | ||
mechanism: { | ||
type: 'chained', | ||
handled: true, | ||
}, | ||
stacktrace: { | ||
frames: expect.any(Array), | ||
}, | ||
}); | ||
expect(eventData.exception?.values?.[1]).toMatchObject({ | ||
type: 'Error', | ||
value: `This is a very long message that should be truncated and will be, | ||
this is a very long message that should be truncated and will be, | ||
this is a very long message that should be truncated and will be, | ||
this is a very long message that should be truncated...`, | ||
mechanism: { | ||
type: 'generic', | ||
handled: true, | ||
}, | ||
stacktrace: { | ||
frames: expect.any(Array), | ||
}, | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.