diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-24 21:09:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-24 21:09:54 +0300 |
commit | dc900fdc5f4c353ff2e261fc64fbbb0d87af1735 (patch) | |
tree | 62e1b6c93128a67b8dff2045c65342f8f7b03949 /spec/frontend/ci/runner/components | |
parent | 8d98d0dd3abaacdeaf183b9ea39a292ea52cae45 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/ci/runner/components')
3 files changed, 4 insertions, 2 deletions
diff --git a/spec/frontend/ci/runner/components/runner_create_form_spec.js b/spec/frontend/ci/runner/components/runner_create_form_spec.js index c452e32b0e4..3c5f8c4d6a9 100644 --- a/spec/frontend/ci/runner/components/runner_create_form_spec.js +++ b/spec/frontend/ci/runner/components/runner_create_form_spec.js @@ -61,6 +61,7 @@ describe('RunnerCreateForm', () => { createComponent(); expect(findRunnerFormFields().props('value')).toEqual(defaultRunnerModel); + expect(findRunnerFormFields().props('runnerType')).toEqual(INSTANCE_TYPE); }); it('shows a submit button', () => { diff --git a/spec/frontend/ci/runner/components/runner_form_fields_spec.js b/spec/frontend/ci/runner/components/runner_form_fields_spec.js index 93be4d9d35e..7e39a6b72f9 100644 --- a/spec/frontend/ci/runner/components/runner_form_fields_spec.js +++ b/spec/frontend/ci/runner/components/runner_form_fields_spec.js @@ -132,8 +132,8 @@ describe('RunnerFormFields', () => { it('when runner is of project type, locked checkbox can be checked', async () => { createComponent({ + runnerType: PROJECT_TYPE, value: { - runnerType: PROJECT_TYPE, locked: false, }, }); @@ -144,7 +144,6 @@ describe('RunnerFormFields', () => { expect(wrapper.emitted('input').at(-1)).toEqual([ { - runnerType: PROJECT_TYPE, locked: true, }, ]); diff --git a/spec/frontend/ci/runner/components/runner_update_form_spec.js b/spec/frontend/ci/runner/components/runner_update_form_spec.js index 5851078a8d3..2ba1c31fe52 100644 --- a/spec/frontend/ci/runner/components/runner_update_form_spec.js +++ b/spec/frontend/ci/runner/components/runner_update_form_spec.js @@ -15,6 +15,7 @@ import RunnerUpdateForm from '~/ci/runner/components/runner_update_form.vue'; import runnerUpdateMutation from '~/ci/runner/graphql/edit/runner_update.mutation.graphql'; import { captureException } from '~/ci/runner/sentry_utils'; import { saveAlertToLocalStorage } from '~/ci/runner/local_storage_alert/save_alert_to_local_storage'; +import { INSTANCE_TYPE } from '~/ci/runner/constants'; import { runnerFormData } from '../mock_data'; jest.mock('~/ci/runner/local_storage_alert/save_alert_to_local_storage'); @@ -119,6 +120,7 @@ describe('RunnerUpdateForm', () => { it('shows runner fields', () => { expect(findRunnerFormFields().props('value')).toEqual(runnerToModel(mockRunner)); + expect(findRunnerFormFields().props('runnerType')).toEqual(INSTANCE_TYPE); }); it('form has not been submitted', () => { |