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-02-01 03:07:51 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-01 03:07:51 +0300
commit4aaadcc49070b085d63377c004c5632b6d1b2b4c (patch)
tree0d8c890fd1ce0ca22ec579a91fcd84f92c50404f /spec/frontend/pipelines
parent9e83d078577a9c066f21fcef1355f800ad895c9c (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.js10
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();