diff options
Diffstat (limited to 'spec/frontend/pipeline_editor/components/file-tree/container_spec.js')
-rw-r--r-- | spec/frontend/pipeline_editor/components/file-tree/container_spec.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/frontend/pipeline_editor/components/file-tree/container_spec.js b/spec/frontend/pipeline_editor/components/file-tree/container_spec.js index 615a3eaac47..04a93e8db25 100644 --- a/spec/frontend/pipeline_editor/components/file-tree/container_spec.js +++ b/spec/frontend/pipeline_editor/components/file-tree/container_spec.js @@ -6,7 +6,7 @@ import { createMockDirective } from 'helpers/vue_mock_directive'; import PipelineEditorFileTreeContainer from '~/pipeline_editor/components/file_tree/container.vue'; import PipelineEditorFileTreeItem from '~/pipeline_editor/components/file_tree/file_item.vue'; import { FILE_TREE_TIP_DISMISSED_KEY } from '~/pipeline_editor/constants'; -import { mockCiConfigPath, mockIncludes } from '../../mock_data'; +import { mockCiConfigPath, mockIncludes, mockIncludesHelpPagePath } from '../../mock_data'; describe('Pipeline editor file nav', () => { let wrapper; @@ -16,6 +16,7 @@ describe('Pipeline editor file nav', () => { shallowMount(PipelineEditorFileTreeContainer, { provide: { ciConfigPath: mockCiConfigPath, + includesHelpPagePath: mockIncludesHelpPagePath, }, propsData: { includes, @@ -64,6 +65,10 @@ describe('Pipeline editor file nav', () => { expect(findTip().exists()).toBe(true); }); + it('renders learn more link', async () => { + expect(findTip().props('secondaryButtonLink')).toBe(mockIncludesHelpPagePath); + }); + it('can dismiss the tip', async () => { expect(findTip().exists()).toBe(true); |