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

41 lines
1.3 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
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();
2021-08-10 04:36:16 +08:00
}
expect(response).toBe(true);
});
};
module.exports = exports = stressTest;