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

58 lines
1.9 KiB
JavaScript
Raw Normal View History

2021-11-26 02:23:58 +08:00
const { test } = require('@playwright/test');
const { Polling } = require('./poll');
test.describe.parallel('Polling', () => {
test('Create Poll', async ({ browser, context, page }) => {
const polling = new Polling(browser, context);
await polling.initPages(page);
await polling.createPoll();
2021-11-26 02:23:58 +08:00
});
test('Create anonymous poll', async ({ browser, context, page }) => {
const polling = new Polling(browser, context);
await polling.initPages(page);
await polling.pollAnonymous()
2021-11-26 02:23:58 +08:00
});
2021-12-01 04:10:38 +08:00
test('Create quick poll - from the slide', async ({ browser, context, page }) => {
const polling = new Polling(browser, context);
await polling.initPages(page);
await polling.quickPoll();
2021-11-26 02:23:58 +08:00
});
test('Create poll with user response', async ({ browser, context, page }) => {
const polling = new Polling(browser, context);
await polling.initPages(page);
await polling.pollUserResponse();
2021-11-26 02:23:58 +08:00
});
test('Stop a poll manually', async ({ browser, context, page }) => {
const polling = new Polling(browser, context);
await polling.initPages(page);
await polling.stopPoll();
2021-11-26 02:23:58 +08:00
});
test('Poll results in chat message', async ({ browser, context, page }) => {
const polling = new Polling(browser, context);
await polling.initPages(page);
await polling.pollResultsOnChat();
2021-11-26 02:23:58 +08:00
});
test('Poll results on whiteboard', async ({ browser, page }) => {
const polling = new Polling(browser);
await polling.initModPage(page);
await polling.pollResultsOnWhiteboard();
2021-11-26 02:23:58 +08:00
});
2021-12-01 04:10:38 +08:00
test('Poll results in a different presentation', async ({ browser, page }) => {
const polling = new Polling(browser);
await polling.initModPage(page);
await polling.pollResultsInDifferentPresentation();
2021-11-26 02:23:58 +08:00
});
test('Manage response choices', async ({ browser, context, page }) => {
const polling = new Polling(browser, context);
await polling.initPages(page);
await polling.manageResponseChoices();
2021-11-26 02:23:58 +08:00
});
});