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-11-12 15:10:27 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-11-12 15:10:27 +0300
commitce07dcdcf59419b41b286fce079750aa1d0a478b (patch)
treec75477ac8821dc136c4cc3afb7b6eeb6b557ce21 /spec/frontend/alerts_settings
parent7717a594e88951ba2b92358aa9a10a0030799678 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/alerts_settings')
-rw-r--r--spec/frontend/alerts_settings/components/alerts_settings_form_spec.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/spec/frontend/alerts_settings/components/alerts_settings_form_spec.js b/spec/frontend/alerts_settings/components/alerts_settings_form_spec.js
index 7e0d7ff93a1..bdc1dde7d48 100644
--- a/spec/frontend/alerts_settings/components/alerts_settings_form_spec.js
+++ b/spec/frontend/alerts_settings/components/alerts_settings_form_spec.js
@@ -1,4 +1,12 @@
-import { GlForm, GlFormSelect, GlFormInput, GlToggle, GlFormTextarea, GlTab } from '@gitlab/ui';
+import {
+ GlForm,
+ GlFormSelect,
+ GlFormInput,
+ GlToggle,
+ GlFormTextarea,
+ GlTab,
+ GlLink,
+} from '@gitlab/ui';
import { mount } from '@vue/test-utils';
import { nextTick } from 'vue';
import { extendedWrapper } from 'helpers/vue_test_utils_helper';
@@ -101,6 +109,12 @@ describe('AlertsSettingsForm', () => {
expect(findFormFields().at(0).attributes('id')).not.toBe('name-integration');
});
+ it('verify pricing link url', () => {
+ createComponent({ props: { canAddIntegration: false } });
+ const link = findMultiSupportText().findComponent(GlLink);
+ expect(link.attributes('href')).toMatch(/https:\/\/about.gitlab.(com|cn)\/pricing/);
+ });
+
describe('form tabs', () => {
it('renders 3 tabs', () => {
expect(findTabs()).toHaveLength(3);