41 lines
1.3 KiB
JavaScript
41 lines
1.3 KiB
JavaScript
const Stress = require('./stress.js');
|
|
|
|
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';
|
|
await test.modPage.logger('begin of ', testName);
|
|
response = await test.moderatorAsPresenter(testName);
|
|
await test.modPage.logger('end of ', testName);
|
|
} catch (err) {
|
|
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
|
|
test.only('All users must receive breakout room invitations', async () => {
|
|
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();
|
|
await test.closeUserPages();
|
|
}
|
|
expect(response).toBe(true);
|
|
});
|
|
};
|
|
|
|
module.exports = exports = stressTest;
|