bigbluebutton-Github/bigbluebutton-tests/playwright/api/api.spec.js

41 lines
1.3 KiB
JavaScript
Raw Normal View History

const { test } = require('@playwright/test');
const { API } = require('./api.js');
const { APIBreakout } = require('./breakout.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();
});
2022-11-18 06:59:53 +08:00
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();
});
});