diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-20 00:06:22 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-20 00:06:22 +0000 |
commit | 5a3f1ba53bf875a73f800909e8559d15dfab4339 (patch) | |
tree | d59abd1b468ae972040f3c0b667877ffc26a61b5 /spec/frontend | |
parent | 3d5ad15d2bf62ca70b1628afb64c5476e408781c (diff) | |
download | gitlab-ce-5a3f1ba53bf875a73f800909e8559d15dfab4339.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend')
-rw-r--r-- | spec/frontend/error_tracking/components/error_details_spec.js | 12 |
1 files changed, 11 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 54e8b0848a2..ddc17dea291 100644 --- a/spec/frontend/error_tracking/components/error_details_spec.js +++ b/spec/frontend/error_tracking/components/error_details_spec.js @@ -1,6 +1,6 @@ import { createLocalVue, shallowMount } from '@vue/test-utils'; import Vuex from 'vuex'; -import { GlLoadingIcon, GlLink } from '@gitlab/ui'; +import { GlButton, GlLoadingIcon, GlLink } from '@gitlab/ui'; import Stacktrace from '~/error_tracking/components/stacktrace.vue'; import ErrorDetails from '~/error_tracking/components/error_details.vue'; @@ -20,6 +20,7 @@ describe('ErrorDetails', () => { propsData: { issueDetailsPath: '/123/details', issueStackTracePath: '/stacktrace', + issueProjectPath: '/test-project/issues/new', }, }); } @@ -82,6 +83,15 @@ describe('ErrorDetails', () => { expect(wrapper.find(Stacktrace).exists()).toBe(false); }); + it('should allow a blank issue to be created', () => { + store.state.details.loading = false; + store.state.details.error.id = 1; + mountComponent(); + const button = wrapper.find(GlButton); + expect(button.exists()).toBe(true); + expect(button.attributes().href).toBe(wrapper.props().issueProjectPath); + }); + describe('Stacktrace', () => { it('should show stacktrace', () => { store.state.details.loading = false; |