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 => api.post(`/users.setPreferences`, { data: preferences });