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

34 lines
972 B
JavaScript
Raw Normal View History

const { test } = require('@playwright/test');
const { Send } = require('./send');
const { Clear } = require('./clear');
2021-12-01 04:10:38 +08:00
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();
});
2021-12-01 04:10:38 +08:00
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();
});
2021-11-03 06:50:20 +08:00
});