diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-01 03:07:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-01 03:07:51 +0300 |
commit | 4aaadcc49070b085d63377c004c5632b6d1b2b4c (patch) | |
tree | 0d8c890fd1ce0ca22ec579a91fcd84f92c50404f /spec/frontend/pipelines | |
parent | 9e83d078577a9c066f21fcef1355f800ad895c9c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/pipelines')
-rw-r--r-- | spec/frontend/pipelines/components/pipeline_mini_graph/pipeline_stage_spec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/frontend/pipelines/components/pipeline_mini_graph/pipeline_stage_spec.js b/spec/frontend/pipelines/components/pipeline_mini_graph/pipeline_stage_spec.js index 6bc19b592cd..ab2056b4035 100644 --- a/spec/frontend/pipelines/components/pipeline_mini_graph/pipeline_stage_spec.js +++ b/spec/frontend/pipelines/components/pipeline_mini_graph/pipeline_stage_spec.js @@ -73,7 +73,7 @@ describe('Pipelines stage component', () => { beforeEach(async () => { createComponent({ updateDropdown: true }); - mock.onGet(dropdownPath).reply(200, stageReply); + mock.onGet(dropdownPath).reply(HTTP_STATUS_OK, stageReply); await openStageDropdown(); }); @@ -122,7 +122,7 @@ describe('Pipelines stage component', () => { describe('when user opens dropdown and stage request is successful', () => { beforeEach(async () => { - mock.onGet(dropdownPath).reply(200, stageReply); + mock.onGet(dropdownPath).reply(HTTP_STATUS_OK, stageReply); createComponent(); await openStageDropdown(); @@ -164,7 +164,7 @@ describe('Pipelines stage component', () => { beforeEach(async () => { const copyStage = { ...stageReply }; copyStage.latest_statuses[0].name = 'this is the updated content'; - mock.onGet('bar.json').reply(200, copyStage); + mock.onGet('bar.json').reply(HTTP_STATUS_OK, copyStage); createComponent({ stage: { status: { @@ -215,7 +215,7 @@ describe('Pipelines stage component', () => { describe('With merge trains enabled', () => { it('shows a warning on the dropdown', async () => { - mock.onGet(dropdownPath).reply(200, stageReply); + mock.onGet(dropdownPath).reply(HTTP_STATUS_OK, stageReply); createComponent({ isMergeTrain: true, }); @@ -232,7 +232,7 @@ describe('Pipelines stage component', () => { describe('With merge trains disabled', () => { beforeEach(async () => { - mock.onGet(dropdownPath).reply(200, stageReply); + mock.onGet(dropdownPath).reply(HTTP_STATUS_OK, stageReply); createComponent(); await openStageDropdown(); |