summaryrefslogtreecommitdiff
path: root/spec/frontend/blob/openapi
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-31 15:10:47 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-31 15:10:47 +0000
commit6f18a8d0b00eae84d262dff137fddd9639f3c52a (patch)
treef6297c5a843ee6096e996f58c768e80232e2b610 /spec/frontend/blob/openapi
parentc62dd5ae440db9ad4696000a863fbcb53fe83498 (diff)
downloadgitlab-ce-6f18a8d0b00eae84d262dff137fddd9639f3c52a.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/blob/openapi')
-rw-r--r--spec/frontend/blob/openapi/index_spec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/frontend/blob/openapi/index_spec.js b/spec/frontend/blob/openapi/index_spec.js
index 4b5cedcaee9..95e86398ab8 100644
--- a/spec/frontend/blob/openapi/index_spec.js
+++ b/spec/frontend/blob/openapi/index_spec.js
@@ -1,5 +1,6 @@
import axios from 'axios';
import MockAdapter from 'axios-mock-adapter';
+import { TEST_HOST } from 'helpers/test_constants';
import { setHTMLFixture, resetHTMLFixture } from 'helpers/fixtures';
import renderOpenApi from '~/blob/openapi';
import { HTTP_STATUS_OK } from '~/lib/utils/http_status';
@@ -22,7 +23,7 @@ describe('OpenAPI blob viewer', () => {
it('initializes SwaggerUI with the correct configuration', () => {
expect(document.body.innerHTML).toContain(
- '<iframe src="/-/sandbox/swagger" sandbox="allow-scripts allow-popups allow-forms" frameborder="0" width="100%" height="1000"></iframe>',
+ `<iframe src="${TEST_HOST}/-/sandbox/swagger" sandbox="allow-scripts allow-popups allow-forms" frameborder="0" width="100%" height="1000"></iframe>`,
);
});
});