Commit dbff1e77 authored by mgandres's avatar mgandres

Remove redundant spec for pipeline editor refetch

parent 3feab2e3
<script>
import { GlButton, GlSprintf } from '@gitlab/ui';
import { __ } from '~/locale';
import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
import PipelineEditorFileNav from '~/pipeline_editor/components/file_nav/pipeline_editor_file_nav.vue';
import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
export default {
components: {
......
......@@ -331,30 +331,5 @@ describe('Pipeline editor app component', () => {
expect(findEmptyState().exists()).toBe(false);
expect(findEditorHome().exists()).toBe(true);
});
it('shows start screen when refetch does not fetch CI file', async () => {
mockBlobContentData.mockResolvedValue(mockCiYml);
await createComponentWithApollo();
expect(findEmptyState().exists()).toBe(false);
expect(findEditorHome().exists()).toBe(true);
mockBlobContentData.mockRejectedValue({
response: {
status: httpStatusCodes.NOT_FOUND,
},
});
await wrapper.vm.$apollo.queries.initialCiFileContent.refetch();
await wrapper.vm.handleBlobContentError({
networkError: {
response: {
status: httpStatusCodes.NOT_FOUND,
},
},
});
expect(findEmptyState().exists()).toBe(true);
expect(findEditorHome().exists()).toBe(false);
});
});
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment