From 305818feb98140a71669de4acf27b66481094de3 Mon Sep 17 00:00:00 2001 From: juancarmore Date: Fri, 5 Sep 2025 01:03:30 +0200 Subject: [PATCH] tests-e2e: fix updateRoomPreferences function --- frontend/webcomponent/tests/e2e/ui-feature-preferences.test.ts | 3 +-- frontend/webcomponent/tests/helpers/function-helpers.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/webcomponent/tests/e2e/ui-feature-preferences.test.ts b/frontend/webcomponent/tests/e2e/ui-feature-preferences.test.ts index 1d70382..bf3d09c 100644 --- a/frontend/webcomponent/tests/e2e/ui-feature-preferences.test.ts +++ b/frontend/webcomponent/tests/e2e/ui-feature-preferences.test.ts @@ -305,7 +305,7 @@ test.describe('UI Feature Preferences Tests', () => { await waitForVirtualBackgroundToApply(page); // Now disable virtual backgrounds - const { preferences: updatedPreferences } = await updateRoomPreferences( + await updateRoomPreferences( roomId, { chatPreferences: { enabled: true }, @@ -318,7 +318,6 @@ test.describe('UI Feature Preferences Tests', () => { adminCookie ); - expect(updatedPreferences.virtualBackgroundPreferences.enabled).toBe(false); await leaveRoom(page); await page.reload(); diff --git a/frontend/webcomponent/tests/helpers/function-helpers.ts b/frontend/webcomponent/tests/helpers/function-helpers.ts index e3d1c4f..d668a4d 100644 --- a/frontend/webcomponent/tests/helpers/function-helpers.ts +++ b/frontend/webcomponent/tests/helpers/function-helpers.ts @@ -134,7 +134,7 @@ export const updateRoomPreferences = async (roomId: string, preferences: any, ad 'Content-Type': 'application/json', Cookie: adminCookie }, - body: JSON.stringify(preferences) + body: JSON.stringify({ preferences }) }); if (!response.ok) {