import type { APIResponse } from '@playwright/test'; import type { ISetting } from '@rocket.chat/core-typings'; import type { BaseTest } from './test'; export const saveSettings = ( api: BaseTest['api'], changes: { _id: ISetting['_id']; value: ISetting['value']; }[], ): Promise => api.post('/settings', { settings: changes });