diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-28 03:12:20 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-28 03:12:20 +0300 |
commit | e74c47fb1bd1c137145e19143b0f77cf420990f4 (patch) | |
tree | 1ea75375e2d46a0fcc107c336759454c24a332e4 /spec/frontend/vue_shared/components/runner_instructions | |
parent | e49c47d3bc5603e8e9d6ad40fc7fccae9f885843 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/vue_shared/components/runner_instructions')
4 files changed, 10 insertions, 8 deletions
diff --git a/spec/frontend/vue_shared/components/runner_instructions/instructions/__snapshots__/runner_docker_instructions_spec.js.snap b/spec/frontend/vue_shared/components/runner_instructions/instructions/__snapshots__/runner_docker_instructions_spec.js.snap deleted file mode 100644 index d14f66df8a1..00000000000 --- a/spec/frontend/vue_shared/components/runner_instructions/instructions/__snapshots__/runner_docker_instructions_spec.js.snap +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`RunnerDockerInstructions renders contents 1`] = `"To install Runner in a container follow the instructions described in the GitLab documentation View installation instructions Close"`; diff --git a/spec/frontend/vue_shared/components/runner_instructions/instructions/__snapshots__/runner_kubernetes_instructions_spec.js.snap b/spec/frontend/vue_shared/components/runner_instructions/instructions/__snapshots__/runner_kubernetes_instructions_spec.js.snap deleted file mode 100644 index 1172bf07dff..00000000000 --- a/spec/frontend/vue_shared/components/runner_instructions/instructions/__snapshots__/runner_kubernetes_instructions_spec.js.snap +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`RunnerKubernetesInstructions renders contents 1`] = `"To install Runner in Kubernetes follow the instructions described in the GitLab documentation. View installation instructions Close"`; diff --git a/spec/frontend/vue_shared/components/runner_instructions/instructions/runner_docker_instructions_spec.js b/spec/frontend/vue_shared/components/runner_instructions/instructions/runner_docker_instructions_spec.js index 2922d261b24..94823bb640b 100644 --- a/spec/frontend/vue_shared/components/runner_instructions/instructions/runner_docker_instructions_spec.js +++ b/spec/frontend/vue_shared/components/runner_instructions/instructions/runner_docker_instructions_spec.js @@ -17,7 +17,11 @@ describe('RunnerDockerInstructions', () => { }); it('renders contents', () => { - expect(wrapper.text().replace(/\s+/g, ' ')).toMatchSnapshot(); + expect(wrapper.text()).toContain( + 'To install Runner in a container follow the instructions described in the GitLab documentation', + ); + expect(wrapper.text()).toContain('View installation instructions'); + expect(wrapper.text()).toContain('Close'); }); it('renders link', () => { diff --git a/spec/frontend/vue_shared/components/runner_instructions/instructions/runner_kubernetes_instructions_spec.js b/spec/frontend/vue_shared/components/runner_instructions/instructions/runner_kubernetes_instructions_spec.js index 0bfcc0e3d86..9d6658e002c 100644 --- a/spec/frontend/vue_shared/components/runner_instructions/instructions/runner_kubernetes_instructions_spec.js +++ b/spec/frontend/vue_shared/components/runner_instructions/instructions/runner_kubernetes_instructions_spec.js @@ -17,7 +17,11 @@ describe('RunnerKubernetesInstructions', () => { }); it('renders contents', () => { - expect(wrapper.text().replace(/\s+/g, ' ')).toMatchSnapshot(); + expect(wrapper.text()).toContain( + 'To install Runner in Kubernetes follow the instructions described in the GitLab documentation.', + ); + expect(wrapper.text()).toContain('View installation instructions'); + expect(wrapper.text()).toContain('Close'); }); it('renders link', () => { |