-
-
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.
Update migration guide for captureUserFeedback
- Loading branch information
1 parent
f048fff
commit 16c451b
Showing
4 changed files
with
34 additions
and
22 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
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 |
---|---|---|
|
@@ -14,12 +14,14 @@ sentryTest('capture user feedback when captureException is called', async ({ get | |
const errorEvent = ('exception' in data[0] ? data[0] : data[1]) as Event; | ||
const feedback = ('exception' in data[0] ? data[1] : data[0]) as FeedbackEvent; | ||
|
||
expect(feedback.contexts).toEqual(expect.objectContaining({ | ||
feedback: { | ||
associated_event_id: errorEvent.event_id, | ||
message: 'This feedback should be attached associated with the captured error', | ||
contact_email: '[email protected]', | ||
name: 'John Doe', | ||
} | ||
})); | ||
expect(feedback.contexts).toEqual( | ||
expect.objectContaining({ | ||
feedback: { | ||
associated_event_id: errorEvent.event_id, | ||
message: 'This feedback should be attached associated with the captured error', | ||
contact_email: '[email protected]', | ||
name: 'John Doe', | ||
}, | ||
}), | ||
); | ||
}); |
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 |
---|---|---|
|
@@ -14,10 +14,14 @@ sentryTest('capture user feedback when captureMessage is called', async ({ getLo | |
const errorEvent = ('exception' in data[0] ? data[0] : data[1]) as Event; | ||
const feedback = ('exception' in data[0] ? data[1] : data[0]) as FeedbackEvent; | ||
|
||
expect(feedback.contexts).toEqual(expect.objectContaining({ | ||
message: 'This feedback should be attached associated with the captured message', | ||
contact_email: '[email protected]', | ||
associated_event_id: errorEvent.event_id, | ||
name: 'John Doe', | ||
})); | ||
expect(feedback.contexts).toEqual( | ||
expect.objectContaining({ | ||
feedback: { | ||
message: 'This feedback should be attached associated with the captured message', | ||
contact_email: '[email protected]', | ||
associated_event_id: errorEvent.event_id, | ||
name: 'John Doe', | ||
}, | ||
}), | ||
); | ||
}); |
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