tests-e2e: fix updateRoomPreferences function
This commit is contained in:
parent
e0a305bff3
commit
305818feb9
@ -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();
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user