bigbluebutton-Github/bigbluebutton-tests/playwright/api/api.spec.js
2022-11-17 22:26:08 -05:00

42 lines
1.3 KiB
JavaScript

const { test } = require('@playwright/test');
const { API, APIBreakout } = require('./api.js');
test.describe.parallel('API', () => {
test('getMeetings', async ({ browser, context, page }) => {
const api = new API(browser, context, page);
await api.testGetMeetings();
});
test('getMeetingInfo', async ({ browser, context, page }) => {
const api = new API(browser, context, page);
await api.testGetMeetingInfo();
});
test('breakoutWithoutParent', async ({ browser, context }) => {
const api = new APIBreakout(browser, context);
await api.testBreakoutWithoutParent();
});
test('breakoutWithoutSequenceNumber', async ({ browser, context, page }) => {
const api = new APIBreakout(browser, context);
await api.initModPage(page);
await api.testBreakoutWithoutSequenceNumber();
});
test('breakoutWithNonexistentParent', async ({ browser, context }) => {
const api = new APIBreakout(browser, context);
await api.testBreakoutWithNonexistentParent();
});
test('breakoutMeetingInfo', async ({ browser, context, page }) => {
const api = new APIBreakout(browser, context);
await api.initPages(page);
await api.create();
await api.testBreakoutMeetingInfoNoJoins();
await api.joinRoom();
await api.testBreakoutMeetingInfoOneJoin();
});
});