2024-03-06 22:26:03 +08:00
|
|
|
const { test } = require('../fixtures');
|
2022-11-19 05:53:05 +08:00
|
|
|
const { API } = require('./api.js');
|
|
|
|
const { APIBreakout } = require('./breakout.js');
|
2022-09-06 11:45:53 +08:00
|
|
|
|
|
|
|
test.describe.parallel('API', () => {
|
2022-10-10 03:10:05 +08:00
|
|
|
test('getMeetings', async ({ browser, context, page }) => {
|
2022-09-06 11:45:53 +08:00
|
|
|
const api = new API(browser, context, page);
|
2022-10-10 03:10:05 +08:00
|
|
|
await api.testGetMeetings();
|
|
|
|
});
|
|
|
|
|
|
|
|
test('getMeetingInfo', async ({ browser, context, page }) => {
|
|
|
|
const api = new API(browser, context, page);
|
|
|
|
await api.testGetMeetingInfo();
|
2022-09-06 11:45:53 +08:00
|
|
|
});
|
|
|
|
|
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();
|
|
|
|
});
|
2022-09-06 11:45:53 +08:00
|
|
|
});
|