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) {