bigbluebutton-Github/bigbluebutton-tests/playwright/layouts/util.js
2023-04-26 15:53:52 -03:00

14 lines
336 B
JavaScript

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;