2024-03-06 22:26:03 +08:00
|
|
|
const { test } = require('../fixtures');
|
2021-12-02 12:12:14 +08:00
|
|
|
const { Create } = require('./create');
|
|
|
|
const { Join } = require('./join');
|
2021-11-30 21:42:57 +08:00
|
|
|
|
2024-07-08 21:42:57 +08:00
|
|
|
test.describe.parallel('Breakout', { tag: '@ci' }, () => {
|
2022-09-30 19:17:15 +08:00
|
|
|
test.describe.parallel('Creating', () => {
|
2024-05-15 05:07:58 +08:00
|
|
|
test('Create Breakout room', async ({ browser, context, page }) => {
|
2022-09-30 19:17:15 +08:00
|
|
|
const create = new Create(browser, context);
|
|
|
|
await create.initPages(page);
|
|
|
|
await create.create();
|
|
|
|
});
|
2021-11-30 21:42:57 +08:00
|
|
|
|
2022-09-30 19:17:15 +08:00
|
|
|
test('Change number of rooms', async ({ browser, context, page }) => {
|
|
|
|
const create = new Create(browser, context);
|
|
|
|
await create.initPages(page);
|
|
|
|
await create.changeNumberOfRooms();
|
|
|
|
});
|
2021-11-30 21:42:57 +08:00
|
|
|
|
2022-09-30 19:17:15 +08:00
|
|
|
test('Change duration time', async ({ browser, context, page }) => {
|
|
|
|
const create = new Create(browser, context);
|
|
|
|
await create.initPages(page);
|
|
|
|
await create.changeDurationTime();
|
|
|
|
});
|
2021-11-30 21:42:57 +08:00
|
|
|
|
2022-09-30 19:17:15 +08:00
|
|
|
test('Change rooms name', async ({ browser, context, page }) => {
|
|
|
|
const create = new Create(browser, context);
|
|
|
|
await create.initPages(page);
|
|
|
|
await create.changeRoomsName();
|
|
|
|
});
|
2022-09-16 02:31:10 +08:00
|
|
|
|
2024-05-15 05:07:58 +08:00
|
|
|
test('Remove and reset assignments', async ({ browser, context, page }) => {
|
2022-09-30 19:17:15 +08:00
|
|
|
const create = new Create(browser, context);
|
|
|
|
await create.initPages(page);
|
|
|
|
await create.removeAndResetAssignments();
|
|
|
|
});
|
2022-09-16 02:31:10 +08:00
|
|
|
|
2024-05-15 05:07:58 +08:00
|
|
|
test('Drag and drop user in a room', async ({ browser, context, page }) => {
|
2022-09-30 19:17:15 +08:00
|
|
|
const create = new Create(browser, context);
|
|
|
|
await create.initPages(page);
|
|
|
|
await create.dragDropUserInRoom();
|
2022-11-26 03:54:32 +08:00
|
|
|
});
|
2022-09-16 02:31:10 +08:00
|
|
|
});
|
|
|
|
|
2024-06-07 03:15:36 +08:00
|
|
|
test.describe.parallel('After creating', () => {
|
2022-09-30 19:17:15 +08:00
|
|
|
// https://docs.bigbluebutton.org/2.6/release-tests.html#moderators-creating-breakout-rooms-and-assiging-users-automated
|
2024-05-15 05:07:58 +08:00
|
|
|
test('Join Breakout room', async ({ browser, context, page }) => {
|
2022-09-30 19:17:15 +08:00
|
|
|
const join = new Join(browser, context);
|
|
|
|
await join.initPages(page);
|
|
|
|
await join.create()
|
|
|
|
await join.joinRoom();
|
|
|
|
});
|
2022-09-16 02:31:10 +08:00
|
|
|
|
2022-09-30 19:17:15 +08:00
|
|
|
test('Join Breakout room and share webcam', async ({ browser, context, page }) => {
|
|
|
|
const join = new Join(browser, context);
|
|
|
|
await join.initPages(page);
|
|
|
|
await join.create()
|
|
|
|
await join.joinAndShareWebcam();
|
|
|
|
});
|
|
|
|
|
|
|
|
test('Join Breakout room and share screen', async ({ browser, context, page }) => {
|
|
|
|
const join = new Join(browser, context);
|
|
|
|
await join.initPages(page);
|
|
|
|
await join.create();
|
|
|
|
await join.joinAndShareScreen();
|
|
|
|
});
|
|
|
|
|
|
|
|
test('Join Breakout room with Audio', async ({ browser, context, page }) => {
|
|
|
|
const join = new Join(browser, context);
|
|
|
|
await join.initPages(page);
|
|
|
|
await join.create();
|
|
|
|
await join.joinWithAudio();
|
|
|
|
});
|
|
|
|
|
2024-05-15 05:07:58 +08:00
|
|
|
test('Message to all rooms', async ({ browser, context, page }) => {
|
2022-09-30 19:17:15 +08:00
|
|
|
const join = new Join(browser, context);
|
|
|
|
await join.initPages(page);
|
|
|
|
await join.create();
|
|
|
|
await join.messageToAllRooms();
|
|
|
|
});
|
|
|
|
|
2024-05-15 05:07:58 +08:00
|
|
|
test('Change duration time', async ({ browser, context, page }) => {
|
2022-09-30 19:17:15 +08:00
|
|
|
const join = new Join(browser, context);
|
|
|
|
await join.initPages(page);
|
|
|
|
await join.create();
|
|
|
|
await join.changeDurationTime();
|
|
|
|
});
|
|
|
|
|
2024-05-15 05:07:58 +08:00
|
|
|
test('User name shows below rooms name', async ({ browser, context, page }) => {
|
2022-09-30 19:17:15 +08:00
|
|
|
const join = new Join(browser, context);
|
|
|
|
await join.initPages(page);
|
|
|
|
await join.create();
|
|
|
|
await join.usernameShowsBelowRoomsName();
|
|
|
|
});
|
|
|
|
|
|
|
|
test('Show breakout room time remaining', async ({ browser, context, page }) => {
|
|
|
|
const join = new Join(browser, context);
|
|
|
|
await join.initPages(page);
|
|
|
|
await join.create();
|
|
|
|
await join.showBreakoutRoomTimeRemaining();
|
|
|
|
});
|
|
|
|
|
2024-05-15 05:07:58 +08:00
|
|
|
test('End all breakout rooms', async ({ browser, context, page }) => {
|
2022-09-30 19:17:15 +08:00
|
|
|
const join = new Join(browser, context);
|
|
|
|
await join.initPages(page);
|
|
|
|
await join.create();
|
|
|
|
await join.endAllBreakoutRooms();
|
|
|
|
});
|
|
|
|
|
2024-05-15 05:07:58 +08:00
|
|
|
test('Invite user after creating rooms', async ({ browser, context, page }) => {
|
2022-09-30 19:17:15 +08:00
|
|
|
const join = new Join(browser, context);
|
|
|
|
await join.initPages(page);
|
|
|
|
await join.create();
|
|
|
|
await join.inviteUserAfterCreatingRooms();
|
|
|
|
});
|
2022-09-16 02:31:10 +08:00
|
|
|
|
2024-05-15 05:07:58 +08:00
|
|
|
test('Move user to another room', async ({ browser, context, page }) => {
|
2022-09-30 19:17:15 +08:00
|
|
|
const join = new Join(browser, context);
|
|
|
|
await join.initPages(page);
|
|
|
|
await join.create();
|
|
|
|
await join.moveUserToOtherRoom();
|
|
|
|
});
|
2022-12-31 05:49:18 +08:00
|
|
|
|
2023-11-29 04:10:46 +08:00
|
|
|
test('Export breakout room shared notes @flaky', async ({ browser, context, page }) => {
|
2022-12-31 05:49:18 +08:00
|
|
|
const join = new Join(browser, context);
|
|
|
|
await join.initPages(page);
|
2024-06-07 03:15:36 +08:00
|
|
|
await join.create(true);
|
2022-12-31 05:49:18 +08:00
|
|
|
await join.exportBreakoutNotes();
|
|
|
|
});
|
|
|
|
|
2024-06-07 03:15:36 +08:00
|
|
|
test('Export breakout room whiteboard annotations', async ({ browser, context, page }) => {
|
2022-12-31 05:49:18 +08:00
|
|
|
const join = new Join(browser, context);
|
|
|
|
await join.initPages(page);
|
2024-06-07 03:15:36 +08:00
|
|
|
await join.create(false, true);
|
2022-12-31 05:49:18 +08:00
|
|
|
await join.exportBreakoutWhiteboard();
|
|
|
|
});
|
2023-01-31 22:01:56 +08:00
|
|
|
|
2024-05-15 05:07:58 +08:00
|
|
|
test('User can choose a room', async ({ browser, context, page }) => {
|
2023-01-31 22:01:56 +08:00
|
|
|
const join = new Join(browser, context);
|
|
|
|
await join.initPages(page);
|
|
|
|
await join.createToAllowChooseOwnRoom();
|
|
|
|
await join.userCanChooseRoom();
|
|
|
|
});
|
2022-09-16 02:31:10 +08:00
|
|
|
});
|
2021-12-04 01:01:36 +08:00
|
|
|
});
|