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

68 lines
1.8 KiB
JavaScript
Raw Normal View History

2021-11-26 02:23:58 +08:00
const { test } = require('@playwright/test');
const { fullyParallel } = require('../playwright.config');
2021-11-26 02:23:58 +08:00
const { Polling } = require('./poll');
const { initializePages } = require('../core/helpers');
2021-11-26 02:23:58 +08:00
test.describe('Polling', async () => {
2023-04-28 20:30:29 +08:00
const polling = new Polling();
test.describe.configure({ mode: fullyParallel ? 'parallel' : 'serial' });
test[fullyParallel ? 'beforeEach' : 'beforeAll'](async ({ browser }) => {
await initializePages(polling, browser, { isMultiUser: true });
2023-04-28 20:30:29 +08:00
});
2022-01-20 03:50:59 +08:00
2023-04-28 20:30:29 +08:00
// Manage
test('Create poll @ci', async () => {
await polling.createPoll();
});
2022-01-20 03:50:59 +08:00
2023-04-28 20:30:29 +08:00
test('Create anonymous poll @ci', async () => {
await polling.pollAnonymous();
});
2022-01-20 03:50:59 +08:00
2024-02-01 00:39:51 +08:00
test.only('Create quick poll - from the slide @ci', async () => {
2023-04-28 20:30:29 +08:00
await polling.quickPoll();
});
2022-01-20 03:50:59 +08:00
2024-02-01 00:39:51 +08:00
test.only('Create poll with user response @ci @flaky', async () => {
2023-04-28 20:30:29 +08:00
await polling.pollUserResponse();
});
test('Stop a poll manually @ci', async () => {
await polling.stopPoll();
});
test('Manage response choices', async () => {
await polling.manageResponseChoices();
});
test('Not able to start new poll without presentation', async () => {
await polling.notAbleStartNewPollWithoutPresentation();
});
2023-05-06 02:12:32 +08:00
2024-02-01 00:39:51 +08:00
test.only('Custom input @ci @flaky', async () => {
2023-05-06 02:12:32 +08:00
await polling.customInput();
});
test('Allow multiple choices @ci', async () => {
2023-05-06 02:12:32 +08:00
await polling.allowMultipleChoices();
});
test('Smart slides questions', async () => {
2023-05-06 02:12:32 +08:00
await polling.smartSlidesQuestions();
2022-01-20 03:50:59 +08:00
});
// Results
2023-09-12 00:37:23 +08:00
test('Poll results in chat message @ci', async () => {
await polling.pollResultsOnChat();
});
2022-01-20 03:50:59 +08:00
test('Poll results on whiteboard @ci @flaky', async () => {
await polling.pollResultsOnWhiteboard();
});
2022-01-20 03:50:59 +08:00
test('Poll results in a different presentation', async () => {
await polling.pollResultsInDifferentPresentation();
2021-11-26 02:23:58 +08:00
});
2021-12-04 01:01:36 +08:00
});