diff options
Diffstat (limited to 'spec/frontend/error_tracking')
-rw-r--r-- | spec/frontend/error_tracking/components/error_details_spec.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/frontend/error_tracking/components/error_details_spec.js b/spec/frontend/error_tracking/components/error_details_spec.js index 632ed373545..6dc4980aaec 100644 --- a/spec/frontend/error_tracking/components/error_details_spec.js +++ b/spec/frontend/error_tracking/components/error_details_spec.js @@ -110,7 +110,7 @@ describe('ErrorDetails', () => { beforeEach(() => { store.state.details.loading = false; store.state.details.error = { - id: 1, + id: 129381, title: 'Issue title', external_url: 'http://sentry.gitlab.net/gitlab', first_seen: '2017-05-26T13:32:48Z', @@ -121,6 +121,13 @@ describe('ErrorDetails', () => { mountComponent(); }); + it('should send sentry_issue_identifier', () => { + const sentryErrorIdInput = wrapper.find( + 'glforminput-stub[name="issue[sentry_issue_attributes][sentry_issue_identifier]"', + ); + expect(sentryErrorIdInput.attributes('value')).toBe('129381'); + }); + it('should set the form values with title and description', () => { const csrfTokenInput = wrapper.find('glforminput-stub[name="authenticity_token"]'); const issueTitleInput = wrapper.find('glforminput-stub[name="issue[title]"]'); |