summaryrefslogtreecommitdiff
path: root/spec/frontend/ci/pipeline_editor/components/drawer/cards/getting_started_card_spec.js
blob: cdce757ce7c2996fbf0687e5671969c18bc4f9f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { shallowMount } from '@vue/test-utils';
import GettingStartedCard from '~/ci/pipeline_editor/components/drawer/cards/getting_started_card.vue';

describe('Getting started card', () => {
  let wrapper;

  const createComponent = () => {
    wrapper = shallowMount(GettingStartedCard);
  };

  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);
  });
});