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/fixtures/insert-apps.ts

18 lines
680 B

import { request } from '@playwright/test';
import { BASE_API_URL, BASE_URL } from '../config/constants';
import { Users } from './userStates';
const APP_URL = 'https://github.com/RocketChat/Apps.RocketChat.Tester/blob/master/dist/appsrocketchattester_0.0.5.zip?raw=true';
export default async function insertApp(): Promise<void> {
const api = await request.newContext();
const headers = {
'X-Auth-Token': Users.admin.data.loginToken,
'X-User-Id': Users.admin.data.username,
};
await api.post(`${BASE_URL}/api/apps`, { data: { url: APP_URL }, headers });
await api.post(`${BASE_API_URL}/settings/VideoConf_Default_Provider`, { data: { value: 'test' }, headers });
}