Skip to content

Commit 50961b4

Browse files
authored
Support of S3 storage, backend API now redirects to the right url (lo… (#366)
* Support of S3 storage, backend API now redirects to the right url (local or s3) * Fixed the tests.
1 parent a1fbc1a commit 50961b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

integration_tests/utils/mocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const mockTestRun = async (page: Page, testRun: TestRun) => {
7676
};
7777

7878
export const mockImage = async (page: Page, image: string) => {
79-
return page.route(`${API_URL}/${image}`, (route) =>
79+
return page.route(`${API_URL}/images/${image}`, (route) =>
8080
route.fulfill({
8181
path: `integration_tests/images/${image}`,
8282
}),

src/services/static.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import axios from "axios";
55
import FileSaver from "file-saver";
66

77
function getImage(name: string): string {
8-
if (name) return `${API_URL}/${name}`;
8+
if (name) return `${API_URL}/images/${name}`;
99
return noImage;
1010
}
1111

0 commit comments

Comments
 (0)