2021-09-28 11:21:14 +08:00
|
|
|
const Stress = require('./stress.js');
|
2021-08-10 04:36:16 +08:00
|
|
|
|
|
|
|
const stressTest = () => {
|
|
|
|
// First moderator to join the meeting should be the presenter
|
|
|
|
test('First moderator joining as presenter', async () => {
|
|
|
|
const test = new Stress();
|
|
|
|
let response;
|
|
|
|
try {
|
|
|
|
const testName = 'firstModeratorAsPresenter';
|
2021-10-07 04:19:46 +08:00
|
|
|
await test.modPage.logger('begin of ', testName);
|
2021-08-10 04:36:16 +08:00
|
|
|
response = await test.moderatorAsPresenter(testName);
|
2021-10-07 04:19:46 +08:00
|
|
|
await test.modPage.logger('end of ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
2021-10-07 04:19:46 +08:00
|
|
|
await test.modPage.logger(err);
|
|
|
|
} finally {
|
|
|
|
await test.modPage.close();
|
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
|
|
|
});
|
|
|
|
|
|
|
|
// Check that all users invited to a breakout room can join it
|
2021-10-09 00:49:46 +08:00
|
|
|
test('All users must receive breakout room invitations', async () => {
|
2021-10-07 04:19:46 +08:00
|
|
|
const test = new Stress();
|
|
|
|
let response;
|
|
|
|
try {
|
|
|
|
const testName = 'breakoutRoomInvitation';
|
|
|
|
await test.modPage.logger('begin of ', testName);
|
|
|
|
response = await test.breakoutRoomInvitation(testName);
|
|
|
|
await test.modPage.logger('end of ', testName);
|
|
|
|
} catch (err) {
|
|
|
|
await test.modPage.logger(err);
|
|
|
|
} finally {
|
|
|
|
await test.modPage.close();
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.closeUsersPages();
|
2021-08-10 04:36:16 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
2021-09-28 11:21:14 +08:00
|
|
|
module.exports = exports = stressTest;
|