The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/tests/e2e/utils/setUserPreferences.ts

7 lines
368 B

import type { APIResponse } from '@playwright/test';
import type { UsersSetPreferencesParamsPOST } from '@rocket.chat/rest-typings';
import type { BaseTest } from './test';
export const setUserPreferences = (api: BaseTest['api'], preferences: UsersSetPreferencesParamsPOST['data']): Promise<APIResponse> =>
api.post(`/users.setPreferences`, { data: preferences });