Welcome to mirror list, hosted at ThFree Co, Russian Federation.

environment_spec.js « alerts « lib « ide « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d645209345ce016c72af3336767ea05c56e0c6d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { GlLink } from '@gitlab/ui';
import { mount } from '@vue/test-utils';
import Environments from '~/ide/lib/alerts/environments.vue';

describe('~/ide/lib/alerts/environment.vue', () => {
  let wrapper;

  beforeEach(() => {
    wrapper = mount(Environments);
  });

  it('shows a message regarding environments', () => {
    expect(wrapper.text()).toBe(
      "No deployments detected. Use environments to control your software's continuous deployment. Learn more about deployment jobs.",
    );
  });

  it('links to the help page on environments', () => {
    expect(wrapper.findComponent(GlLink).attributes('href')).toBe('/help/ci/environments/index.md');
  });
});