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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-05-19 18:44:42 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-19 18:44:42 +0300
commit4555e1b21c365ed8303ffb7a3325d773c9b8bf31 (patch)
tree5423a1c7516cffe36384133ade12572cf709398d /spec/frontend/ide/lib/alerts
parente570267f2f6b326480d284e0164a6464ba4081bc (diff)
Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42
Diffstat (limited to 'spec/frontend/ide/lib/alerts')
-rw-r--r--spec/frontend/ide/lib/alerts/environment_spec.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/frontend/ide/lib/alerts/environment_spec.js b/spec/frontend/ide/lib/alerts/environment_spec.js
new file mode 100644
index 00000000000..d645209345c
--- /dev/null
+++ b/spec/frontend/ide/lib/alerts/environment_spec.js
@@ -0,0 +1,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');
+ });
+});