import { shallowMount } from '@vue/test-utils'; import VisualizeAndLintCard from '~/ci/pipeline_editor/components/drawer/cards/getting_started_card.vue'; describe('Visual and Lint card', () => { let wrapper; const createComponent = () => { wrapper = shallowMount(VisualizeAndLintCard); }; beforeEach(() => { createComponent(); }); afterEach(() => { wrapper.destroy(); }); it('renders the title', () => { expect(wrapper.text()).toContain(wrapper.vm.$options.i18n.title); }); it('renders the content', () => { expect(wrapper.text()).toContain(wrapper.vm.$options.i18n.firstParagraph); }); });