tests-e2e: fix updateRoomPreferences function

This commit is contained in:
juancarmore 2025-09-05 01:03:30 +02:00
parent e0a305bff3
commit 305818feb9
2 changed files with 2 additions and 3 deletions

View File

@ -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();

View File

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