bigbluebutton-Github/bigbluebutton-tests/puppeteer/user/util.js

20 lines
673 B
JavaScript
Raw Normal View History

const { ELEMENT_WAIT_TIME } = require('../core/constants');
2018-11-23 20:55:16 +08:00
const e = require('./elements');
async function setStatus(test, status) {
await test.waitForSelector(e.firstUser, ELEMENT_WAIT_TIME);
await test.click(e.firstUser, true);
await test.waitForSelector(e.setStatus, ELEMENT_WAIT_TIME);
2018-11-23 20:55:16 +08:00
await test.click(e.setStatus, true);
await test.waitForSelector(status, ELEMENT_WAIT_TIME);
2018-11-23 20:55:16 +08:00
await test.click(status, true);
}
async function connectionStatus(test) {
2021-08-20 04:22:31 +08:00
await test.click(e.connectionStatusBtn, true);
await test.waitForSelector(e.connectionStatusModal, ELEMENT_WAIT_TIME);
}
2018-11-23 20:55:16 +08:00
exports.setStatus = setStatus;
exports.connectionStatus = connectionStatus;