Skip to content

Commit

Permalink
pr review
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Apr 5, 2024
1 parent 483be47 commit 224b776
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getFirstSentryEnvelopeRequest } from '../../../../../utils/helpers';

// see: https://github.com/getsentry/sentry-javascript/issues/768
sentryTest(
'should record breadcrumb accessing the target property of an event throws an exception',
'should record breadcrumb if accessing the target property of an event throws an exception',
async ({ getLocalTestUrl, page }) => {
const url = await getLocalTestUrl({ testDir: __dirname });

Expand All @@ -21,5 +21,12 @@ sentryTest(
const eventData = await promise;

expect(eventData.breadcrumbs).toHaveLength(1);
expect(eventData.breadcrumbs).toEqual([
{
category: 'ui.input',
message: 'body > input#input1[type="text"]',
timestamp: expect.any(Number),
},
]);
},
);

0 comments on commit 224b776

Please sign in to comment.