bigbluebutton-Github/bigbluebutton-tests/playwright/chat/chat.spec.js
Anton Barboza de Sá d30b806b47
test: Fix no-flaky tests and properly set the execution mode (#19436)
* test: fix shortcuts, add flaky flag for test requiring graphql data, fix slide change for tldraw v2

* test: properly set the execution mode

* test: use isMultiUser parameter inside options obj

* test: fix banner color test

* test: increase breakout test timeouts for user joining room

* test: redo the change in the hide presentation on join test

* test: change hide presentation steps and add flaky flag on it
2024-01-19 13:42:01 -03:00

93 lines
2.6 KiB
JavaScript

const { test } = require('@playwright/test');
const { fullyParallel } = require('../playwright.config');
const { linkIssue, initializePages } = require('../core/helpers');
const { Chat } = require('./chat');
test.describe('Chat', () => {
const chat = new Chat();
let context;
test.describe.configure({ mode: fullyParallel ? 'parallel' : 'serial' });
test[fullyParallel ? 'beforeEach' : 'beforeAll'](async ({ browser }) => {
const { context: innerContext } = await initializePages(chat, browser, { isMultiUser: true });
context = innerContext;
});
// https://docs.bigbluebutton.org/2.6/release-tests.html#public-message-automated
test('Send public message @ci', async () => {
await chat.sendPublicMessage();
});
// https://docs.bigbluebutton.org/2.6/release-tests.html#private-message-automated
test('Send private message @ci', async () => {
await chat.sendPrivateMessage();
});
test('Clear chat @ci', async () => {
await chat.clearChat();
});
test.skip('Copy chat', async () => {
await chat.copyChat(context);
});
test('Save chat @ci', async ({}, testInfo) => {
await chat.saveChat(testInfo);
});
test('Verify character limit', async () => {
await chat.characterLimit();
});
// https://docs.bigbluebutton.org/2.6/release-tests.html#sending-empty-chat-message-automated
test('Not able to send an empty message @ci', async () => {
await chat.emptyMessage();
});
test('Copy and paste public message', async () => {
linkIssue('15948');
await chat.copyPastePublicMessage();
})
test('Send emoji on public chat @ci', async () => {
await chat.sendEmoji();
});
test.skip('Copy chat with emoji', async () => {
// Only works in headed mode
await chat.emojiCopyChat();
});
test('Close private chat @ci', async () => {
await chat.closePrivateChat();
});
test('Save chat with emoji @ci', async ({}, testInfo) => {
await chat.emojiSaveChat(testInfo);
});
test('Send emoji on private chat', async () => {
await chat.emojiSendPrivateChat();
});
test('Send auto converted emoji on public chat', async () => {
await chat.autoConvertEmojiPublicChat();
});
test.skip('Copy chat with auto converted emoji', async () => {
await chat.autoConvertEmojiCopyChat();
});
test('Auto convert emoji save chat', async ({ context }, testInfo) => {
await chat.autoConvertEmojiSaveChat(testInfo);
});
test('Send auto converted emoji on private chat', async () => {
await chat.autoConvertEmojiSendPrivateChat();
});
test('Private chat disabled when user leaves meeting @ci', async () => {
await chat.chatDisabledUserLeaves();
});
});