bigbluebutton-Github/bigbluebutton-tests/playwright/chat/chat.spec.js
2021-11-30 17:10:38 -03:00

34 lines
972 B
JavaScript

const { test } = require('@playwright/test');
const { Send } = require('./send');
const { Clear } = require('./clear');
const { Copy } = require('./copy');
const { Save } = require('./save');
test.describe.parallel('Chat test suite', () => {
test('Send public message', async ({ browser, page }) => {
const send = new Send(browser, page);
await send.init(true, true);
await send.test();
});
test('Clear chat', async ({ browser, page }) => {
const clear = new Clear(browser, page);
await clear.init(true, true);
await clear.test();
});
test('Copy chat', async ({ browser, context, page }) => {
test.fixme(true, 'Only works in headed mode');
const copy = new Copy(browser, page);
await copy.init(true, true);
await copy.test(context);
});
test('Save chat', async ({ browser, page }) => {
test.fixme();
const save = new Save(browser, page);
await save.init(true, true);
await save.test();
});
});