bigbluebutton-Github/bigbluebutton-tests/puppeteer/stress/stress.obj.js

41 lines
1.2 KiB
JavaScript
Raw Normal View History

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';
await test.modPage.logger('begin of ', testName);
2021-08-10 04:36:16 +08:00
response = await test.moderatorAsPresenter(testName);
await test.modPage.logger('end of ', testName);
2021-08-26 22:13:18 +08:00
} 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
2021-10-09 00:49:46 +08:00
test('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();
2021-10-21 01:23:24 +08:00
await test.closeUsersPages();
2021-08-10 04:36:16 +08:00
}
expect(response).toBe(true);
});
};
module.exports = exports = stressTest;