2023-01-25 19:03:02 +00:00
|
|
|
// @ts-ignore
|
|
|
|
import account from './e2e_account';
|
|
|
|
|
|
|
|
export interface IUser {
|
|
|
|
username: string;
|
|
|
|
password: string;
|
|
|
|
email: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type TData = typeof data;
|
|
|
|
export type TDataKeys = keyof TData;
|
|
|
|
export type TDataUsers = keyof typeof data.users;
|
|
|
|
export type TDataChannels = keyof typeof data.channels;
|
|
|
|
export type TUserRegularChannels = keyof typeof data.userRegularChannels;
|
|
|
|
export type TDataGroups = keyof typeof data.groups;
|
|
|
|
export type TDataTeams = keyof typeof data.teams;
|
|
|
|
|
2023-02-20 20:37:19 +00:00
|
|
|
// @ts-ignore
|
2023-02-08 16:06:06 +00:00
|
|
|
const value = globalThis.random;
|
2023-01-25 19:03:02 +00:00
|
|
|
const data = {
|
|
|
|
server: 'https://mobile.rocket.chat',
|
|
|
|
...account,
|
|
|
|
alternateServer: 'https://stable.rocket.chat',
|
|
|
|
users: {
|
|
|
|
regular: {
|
|
|
|
username: `userone${value}`,
|
|
|
|
password: '123',
|
|
|
|
email: `mobile+regular${value}@rocket.chat`
|
|
|
|
},
|
|
|
|
alternate: {
|
|
|
|
username: `usertwo${value}`,
|
|
|
|
password: '123',
|
|
|
|
email: `mobile+alternate${value}@rocket.chat`,
|
|
|
|
totpSecret: 'NA4GOMZGHBQSK6KEFRVT62DMGJJGSYZJFZIHO3ZOGVXWCYZ6MMZQ'
|
|
|
|
},
|
|
|
|
profileChanges: {
|
|
|
|
username: `userthree${value}`,
|
|
|
|
password: '123',
|
|
|
|
email: `mobile+profileChanges${value}@rocket.chat`
|
|
|
|
},
|
|
|
|
existing: {
|
|
|
|
username: `existinguser${value}`,
|
|
|
|
password: '123',
|
|
|
|
email: `mobile+existing${value}@rocket.chat`
|
|
|
|
}
|
|
|
|
},
|
|
|
|
channels: {
|
|
|
|
detoxpublic: {
|
|
|
|
name: 'detox-public'
|
|
|
|
},
|
|
|
|
detoxpublicprotected: {
|
|
|
|
name: 'detox-public-protected',
|
|
|
|
joinCode: '123'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
userRegularChannels: {
|
|
|
|
detoxpublic: {
|
|
|
|
name: `detox-public-${value}`
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups: {
|
|
|
|
private: {
|
|
|
|
name: `detox-private-${value}`
|
|
|
|
},
|
|
|
|
alternate: {
|
|
|
|
name: `detox-alternate-${value}`
|
|
|
|
},
|
|
|
|
alternate2: {
|
|
|
|
name: `detox-alternate2-${value}`
|
|
|
|
}
|
|
|
|
},
|
|
|
|
teams: {
|
|
|
|
private: {
|
|
|
|
name: `detox-team-${value}`
|
|
|
|
}
|
|
|
|
},
|
|
|
|
registeringUser: {
|
|
|
|
username: `newuser${value}`,
|
|
|
|
password: `password${value}`,
|
|
|
|
email: `mobile+registering${value}@rocket.chat`
|
|
|
|
},
|
|
|
|
registeringUser2: {
|
|
|
|
username: `newusertwo${value}`,
|
|
|
|
password: `passwordtwo${value}`,
|
|
|
|
email: `mobile+registeringtwo${value}@rocket.chat`
|
|
|
|
},
|
|
|
|
registeringUser3: {
|
|
|
|
username: `newuserthree${value}`,
|
|
|
|
password: `passwordthree${value}`,
|
|
|
|
email: `mobile+registeringthree${value}@rocket.chat`
|
|
|
|
},
|
|
|
|
registeringUser4: {
|
|
|
|
username: `newuserfour${value}`,
|
|
|
|
password: `passwordfour${value}`,
|
|
|
|
email: `mobile+registeringfour${value}@rocket.chat`
|
|
|
|
},
|
|
|
|
random: value
|
|
|
|
};
|
|
|
|
|
2023-02-08 16:06:06 +00:00
|
|
|
// FIXME: awkward TEMP workaround :(
|
|
|
|
class Data {
|
|
|
|
adminUser!: string;
|
|
|
|
adminPassword!: string;
|
|
|
|
server: string;
|
|
|
|
alternateServer: string;
|
|
|
|
users: any;
|
|
|
|
channels: any;
|
|
|
|
userRegularChannels: any;
|
|
|
|
groups: any;
|
|
|
|
teams: any;
|
|
|
|
registeringUser: any;
|
|
|
|
random: string;
|
|
|
|
constructor(random: string) {
|
|
|
|
const value = random;
|
|
|
|
Object.assign(this, account);
|
|
|
|
this.server = 'https://mobile.rocket.chat';
|
|
|
|
this.alternateServer = 'https://stable.rocket.chat';
|
|
|
|
this.users = {
|
|
|
|
regular: {
|
|
|
|
username: `userone${value}`,
|
|
|
|
password: '123',
|
|
|
|
email: `mobile+regular${value}@rocket.chat`
|
|
|
|
},
|
|
|
|
alternate: {
|
|
|
|
username: `usertwo${value}`,
|
|
|
|
password: '123',
|
|
|
|
email: `mobile+alternate${value}@rocket.chat`,
|
|
|
|
totpSecret: 'NA4GOMZGHBQSK6KEFRVT62DMGJJGSYZJFZIHO3ZOGVXWCYZ6MMZQ'
|
|
|
|
},
|
|
|
|
profileChanges: {
|
|
|
|
username: `userthree${value}`,
|
|
|
|
password: '123',
|
|
|
|
email: `mobile+profileChanges${value}@rocket.chat`
|
|
|
|
},
|
|
|
|
existing: {
|
|
|
|
username: `existinguser${value}`,
|
|
|
|
password: '123',
|
|
|
|
email: `mobile+existing${value}@rocket.chat`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
this.channels = {
|
|
|
|
detoxpublic: {
|
|
|
|
name: 'detox-public'
|
|
|
|
},
|
|
|
|
detoxpublicprotected: {
|
|
|
|
name: 'detox-public-protected',
|
|
|
|
joinCode: '123'
|
|
|
|
}
|
|
|
|
};
|
|
|
|
this.userRegularChannels = {
|
|
|
|
detoxpublic: {
|
|
|
|
name: `detox-public-${value}`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
this.groups = {
|
|
|
|
private: {
|
|
|
|
name: `detox-private-${value}`
|
|
|
|
},
|
|
|
|
alternate: {
|
|
|
|
name: `detox-alternate-${value}`
|
|
|
|
},
|
|
|
|
alternate2: {
|
|
|
|
name: `detox-alternate2-${value}`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
this.teams = {
|
|
|
|
private: {
|
|
|
|
name: `detox-team-${value}`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
this.registeringUser = {
|
|
|
|
username: `newuser${value}`,
|
|
|
|
password: `password${value}`,
|
|
|
|
email: `mobile+registering${value}@rocket.chat`
|
|
|
|
};
|
|
|
|
this.registeringUser = {
|
|
|
|
username: `newusertwo${value}`,
|
|
|
|
password: `passwordtwo${value}`,
|
|
|
|
email: `mobile+registeringtwo${value}@rocket.chat`
|
|
|
|
};
|
|
|
|
this.registeringUser = {
|
|
|
|
username: `newuserthree${value}`,
|
|
|
|
password: `passwordthree${value}`,
|
|
|
|
email: `mobile+registeringthree${value}@rocket.chat`
|
|
|
|
};
|
|
|
|
this.registeringUser = {
|
|
|
|
username: `newuserfour${value}`,
|
|
|
|
password: `passwordfour${value}`,
|
|
|
|
email: `mobile+registeringfour${value}@rocket.chat`
|
|
|
|
};
|
|
|
|
this.random = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export { Data };
|
2023-01-25 19:03:02 +00:00
|
|
|
export default data;
|