cc7aff8686
* initial tldraw v2 alpha 18 with graph-ql * add @apollo/client * update whiteboard test element * update whiteboard test elements * update whiteboard test elements * load .tldr file shapes into bbb * temporarily disable infinite canvas limit in client * disabling failing tests on ci * restore poll results on whiteboard * restore hideViewerCursor functionality * disabling failing tests that needs to be updated --------- Co-authored-by: Gabriel Porfirio <gabrielporfirio1994@gmail.com>
71 lines
1.8 KiB
JavaScript
71 lines
1.8 KiB
JavaScript
const { test } = require('@playwright/test');
|
|
const { fullyParallel } = require('../playwright.config');
|
|
const { Polling } = require('./poll');
|
|
|
|
if (!fullyParallel) test.describe.configure({ mode: 'serial' });
|
|
|
|
test.describe('Polling', () => {
|
|
const polling = new Polling();
|
|
|
|
test.beforeAll(async ({ browser }) => {
|
|
const context = await browser.newContext();
|
|
const page = await context.newPage();
|
|
await polling.initModPage(page, true);
|
|
await polling.initUserPage(true, context);
|
|
});
|
|
|
|
// Manage
|
|
test('Create poll @ci', async () => {
|
|
await polling.createPoll();
|
|
});
|
|
|
|
test('Create anonymous poll @ci', async () => {
|
|
await polling.pollAnonymous();
|
|
});
|
|
|
|
test('Create quick poll - from the slide @ci @flaky', async () => {
|
|
await polling.quickPoll();
|
|
});
|
|
|
|
test('Create poll with user response @ci @flaky', async () => {
|
|
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();
|
|
});
|
|
|
|
test('Custom input @ci @flaky', async () => {
|
|
await polling.customInput();
|
|
});
|
|
|
|
test('Allow multiple choices @ci', async () => {
|
|
await polling.allowMultipleChoices();
|
|
});
|
|
|
|
test('Smart slides questions', async () => {
|
|
await polling.smartSlidesQuestions();
|
|
});
|
|
|
|
// Results
|
|
test('Poll results in chat message @ci', async () => {
|
|
await polling.pollResultsOnChat();
|
|
});
|
|
|
|
test('Poll results on whiteboard @ci @flaky', async () => {
|
|
await polling.pollResultsOnWhiteboard();
|
|
});
|
|
|
|
test('Poll results in a different presentation', async () => {
|
|
await polling.pollResultsInDifferentPresentation();
|
|
});
|
|
});
|