20 lines
673 B
JavaScript
20 lines
673 B
JavaScript
const { ELEMENT_WAIT_TIME } = require('../core/constants');
|
|
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);
|
|
await test.click(e.setStatus, true);
|
|
await test.waitForSelector(status, ELEMENT_WAIT_TIME);
|
|
await test.click(status, true);
|
|
}
|
|
|
|
async function connectionStatus(test) {
|
|
await test.click(e.connectionStatusBtn, true);
|
|
await test.waitForSelector(e.connectionStatusModal, ELEMENT_WAIT_TIME);
|
|
}
|
|
|
|
exports.setStatus = setStatus;
|
|
exports.connectionStatus = connectionStatus;
|