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-06-30 00:07:38 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-30 00:07:38 +0300
commit97eb4a009519453821dcae6c99049e490863adce (patch)
tree11d02c82ac9d36d036a3219459028e012407551b /spec/frontend/projects
parentbc0c5df2f15523e8c4a57682b149526f0cf55b9c (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/projects')
-rw-r--r--spec/frontend/projects/settings/components/shared_runners_toggle_spec.js39
1 files changed, 0 insertions, 39 deletions
diff --git a/spec/frontend/projects/settings/components/shared_runners_toggle_spec.js b/spec/frontend/projects/settings/components/shared_runners_toggle_spec.js
index b592db8a64e..0c5bbe2a115 100644
--- a/spec/frontend/projects/settings/components/shared_runners_toggle_spec.js
+++ b/spec/frontend/projects/settings/components/shared_runners_toggle_spec.js
@@ -1,8 +1,6 @@
import { GlAlert, GlToggle, GlTooltip } from '@gitlab/ui';
import { shallowMount } from '@vue/test-utils';
import MockAxiosAdapter from 'axios-mock-adapter';
-import CcValidationRequiredAlert from 'ee_component/billings/components/cc_validation_required_alert.vue';
-import { TEST_HOST } from 'helpers/test_constants';
import waitForPromises from 'helpers/wait_for_promises';
import axios from '~/lib/utils/axios_utils';
import SharedRunnersToggleComponent from '~/projects/settings/components/shared_runners_toggle.vue';
@@ -31,7 +29,6 @@ describe('projects/settings/components/shared_runners', () => {
const findErrorAlert = () => wrapper.find(GlAlert);
const findSharedRunnersToggle = () => wrapper.find(GlToggle);
const findToggleTooltip = () => wrapper.find(GlTooltip);
- const findCcValidationRequiredAlert = () => wrapper.findComponent(CcValidationRequiredAlert);
const getToggleValue = () => findSharedRunnersToggle().props('value');
const isToggleLoading = () => findSharedRunnersToggle().props('isLoading');
const isToggleDisabled = () => findSharedRunnersToggle().props('disabled');
@@ -158,40 +155,4 @@ describe('projects/settings/components/shared_runners', () => {
});
});
});
-
- describe('with credit card validation required and shared runners DISABLED', () => {
- beforeEach(() => {
- window.gon = {
- subscriptions_url: TEST_HOST,
- payment_form_url: TEST_HOST,
- };
-
- createComponent({
- isCreditCardValidationRequired: true,
- isEnabled: false,
- });
- });
-
- it('toggle should not be visible', () => {
- expect(findSharedRunnersToggle().exists()).toBe(false);
- });
-
- it('credit card validation component should exist', () => {
- expect(findCcValidationRequiredAlert().exists()).toBe(true);
- expect(findCcValidationRequiredAlert().text()).toBe(
- SharedRunnersToggleComponent.i18n.REQUIRES_VALIDATION_TEXT,
- );
- });
-
- describe('when credit card is validated', () => {
- it('should show the toggle button', async () => {
- findCcValidationRequiredAlert().vm.$emit('verifiedCreditCard');
- await waitForPromises();
-
- expect(findSharedRunnersToggle().exists()).toBe(true);
- expect(getToggleValue()).toBe(false);
- expect(isToggleDisabled()).toBe(false);
- });
- });
- });
});