2022-09-12 14:51:33 +00:00
|
|
|
// @ts-ignore
|
2023-03-07 12:28:51 +00:00
|
|
|
// eslint-disable-next-line import/no-unresolved, import/extensions
|
2022-09-12 14:51:33 +00:00
|
|
|
import account from './e2e_account';
|
2023-03-07 12:28:51 +00:00
|
|
|
import random from './helpers/random';
|
2021-07-02 17:39:39 +00:00
|
|
|
|
2022-09-12 14:51:33 +00:00
|
|
|
export interface IUser {
|
|
|
|
username: string;
|
|
|
|
password: string;
|
|
|
|
email: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type TData = typeof data;
|
|
|
|
export type TDataKeys = keyof TData;
|
|
|
|
export type TDataChannels = keyof typeof data.channels;
|
|
|
|
|
2018-05-23 13:39:18 +00:00
|
|
|
const data = {
|
2021-07-02 17:39:39 +00:00
|
|
|
server: 'https://mobile.rocket.chat',
|
|
|
|
alternateServer: 'https://stable.rocket.chat',
|
2023-03-07 12:28:51 +00:00
|
|
|
...account,
|
2021-07-02 17:39:39 +00:00
|
|
|
channels: {
|
|
|
|
detoxpublic: {
|
|
|
|
name: 'detox-public'
|
|
|
|
},
|
|
|
|
detoxpublicprotected: {
|
|
|
|
name: 'detox-public-protected',
|
|
|
|
joinCode: '123'
|
2022-11-04 17:09:58 +00:00
|
|
|
}
|
|
|
|
},
|
2023-03-07 12:28:51 +00:00
|
|
|
randomUser: (): { username: string; name: string; password: string; email: string } => {
|
|
|
|
const randomVal = random();
|
|
|
|
return {
|
|
|
|
username: `user${randomVal}`,
|
|
|
|
name: `user${randomVal}`, // FIXME: apply a different name
|
2023-05-10 19:32:39 +00:00
|
|
|
password: `Password1@${randomVal}`,
|
2023-03-07 12:28:51 +00:00
|
|
|
email: `mobile+${randomVal}@rocket.chat`
|
|
|
|
};
|
|
|
|
}
|
2021-07-02 17:39:39 +00:00
|
|
|
};
|
2022-09-12 14:51:33 +00:00
|
|
|
|
|
|
|
export default data;
|