From 177648e6d523d4c28cf2e8aec23682ddff9febe8 Mon Sep 17 00:00:00 2001 From: cruizba Date: Mon, 2 Feb 2026 21:09:34 +0100 Subject: [PATCH] tests: Use getFullPath for constructing recording URLs in assertions --- meet-ce/backend/tests/helpers/assertion-helpers.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meet-ce/backend/tests/helpers/assertion-helpers.ts b/meet-ce/backend/tests/helpers/assertion-helpers.ts index a505c155..32c15f6e 100644 --- a/meet-ce/backend/tests/helpers/assertion-helpers.ts +++ b/meet-ce/backend/tests/helpers/assertion-helpers.ts @@ -20,6 +20,7 @@ import { Response } from 'supertest'; import { container } from '../../src/config/dependency-injector.config'; import { INTERNAL_CONFIG } from '../../src/config/internal-config'; import { TokenService } from '../../src/services/token.service'; +import { getFullPath } from './request-helpers'; export const DEFAULT_RECORDING_ENCODING_PRESET = MeetRecordingEncodingPreset.H264_720P_30; export const DEFAULT_RECORDING_LAYOUT = MeetRecordingLayout.GRID; @@ -260,7 +261,7 @@ export const expectValidRecordingLocationHeader = (response: Response) => { expect(locationHeader).toBeDefined(); const locationHeaderUrl = new URL(locationHeader); expect(locationHeaderUrl.pathname).toBe( - `${INTERNAL_CONFIG.API_BASE_PATH_V1}/recordings/${response.body.recordingId}` + getFullPath(`${INTERNAL_CONFIG.API_BASE_PATH_V1}/recordings/${response.body.recordingId}`) ); }; @@ -606,7 +607,7 @@ export const expectValidGetRecordingUrlResponse = (response: Response, recording expect(recordingUrl).toBeDefined(); const parsedUrl = new URL(recordingUrl); - expect(parsedUrl.pathname).toBe(`/recording/${recordingId}`); + expect(parsedUrl.pathname).toBe(getFullPath(`/recording/${recordingId}`)); expect(parsedUrl.searchParams.get('secret')).toBeDefined(); };