bigbluebutton-Github/bigbluebutton-tests/playwright/breakout/breakout.spec.js
2021-12-03 14:01:36 -03:00

40 lines
1.2 KiB
JavaScript

const { test } = require('@playwright/test');
const { Create } = require('./create');
const { Join } = require('./join');
test.describe.parallel('Breakout', () => {
test('Create Breakout room', async ({ browser, context, page }) => {
const create = new Create(browser, context);
await create.initPages(page);
await create.create();
});
test('Join Breakout room', async ({ browser, context, page }) => {
const join = new Join(browser, context);
await join.initPages(page);
await join.create()
await join.joinRoom();
});
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();
});
});