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>2023-12-28 00:16:17 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-12-28 00:16:17 +0300
commitd099cb5be9c4fa93ba9a114d11ba6dbe5f10a4eb (patch)
treed8de98401200c58a9f1b92bf1705fdae42f6d6d3 /spec/frontend/vue_shared/components
parent034c9310c8f946cf82651e63f73bed0a599d345b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/vue_shared/components')
-rw-r--r--spec/frontend/vue_shared/components/runner_instructions/runner_instructions_spec.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/spec/frontend/vue_shared/components/runner_instructions/runner_instructions_spec.js b/spec/frontend/vue_shared/components/runner_instructions/runner_instructions_spec.js
deleted file mode 100644
index 260eddbb37d..00000000000
--- a/spec/frontend/vue_shared/components/runner_instructions/runner_instructions_spec.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import { createMockDirective, getBinding } from 'helpers/vue_mock_directive';
-import { shallowMountExtended } from 'helpers/vue_test_utils_helper';
-import RunnerInstructions from '~/vue_shared/components/runner_instructions/runner_instructions.vue';
-import RunnerInstructionsModal from '~/vue_shared/components/runner_instructions/runner_instructions_modal.vue';
-
-describe('RunnerInstructions component', () => {
- let wrapper;
-
- const findModalButton = () => wrapper.findByTestId('show-modal-button');
- const findModal = () => wrapper.findComponent(RunnerInstructionsModal);
-
- const createComponent = () => {
- wrapper = shallowMountExtended(RunnerInstructions, {
- directives: {
- GlModal: createMockDirective('gl-tooltip'),
- },
- });
- };
-
- beforeEach(() => {
- createComponent();
- });
-
- it('should show the "Show runner installation instructions" button', () => {
- expect(findModalButton().text()).toBe('Show runner installation instructions');
- });
-
- it('should render the modal', () => {
- const modalId = getBinding(findModal().element, 'gl-modal');
-
- expect(findModalButton().attributes('modal-id')).toBe(modalId);
- });
-});