bigbluebutton-Github/bigbluebutton-tests/playwright/layouts/util.js

14 lines
336 B
JavaScript
Raw Normal View History

const e = require('../core/elements');
async function reopenChatSidebar(page) {
await page.waitAndClick(e.userListToggleBtn);
try {
await page.hasElement(e.hidePublicChat);
} catch {
await page.waitAndClick(e.chatButton);
await page.hasElement(e.hidePublicChat);
}
}
exports.reopenChatSidebar = reopenChatSidebar;