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/saveSettings.ts

20 lines
463 B

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<APIResponse> =>
api.post('/method.call/saveSettings', {
message: JSON.stringify({
msg: 'method',
id: '1',
method: 'saveSettings',
params: [changes],
}),
});