bigbluebutton-Github/bigbluebutton-html5/tests/puppeteer/chat/util.js
2020-01-28 14:25:27 -05:00

18 lines
500 B
JavaScript

const e = require('./elements');
async function openChat(test) {
// TODO: Check this if it's open before click
// await test.click(ce.userList);
// await test.click(e.chatButton, true);
await test.waitForSelector(e.chatBox);
await test.waitForSelector(e.chatMessages);
}
async function getTestElements(test) {
const messages = await test.page.$$(`${e.chatUserMessage} ${e.chatMessageText}`);
return messages;
}
exports.openChat = openChat;
exports.getTestElements = getTestElements;