bigbluebutton-Github/bigbluebutton-tests/playwright/user/status.js

24 lines
672 B
JavaScript
Raw Normal View History

2021-11-18 04:07:14 +08:00
const Page = require('../core/page');
const { setStatus } = require('./util');
const e = require('../core/elements');
class Status extends Page {
constructor(browser, page) {
super(browser, page);
}
async test() {
2021-11-18 04:07:14 +08:00
await setStatus(this.page, e.applaud);
await this.page.waitForSelector(e.applauseIcon);
const applauseIconLocator = this.page.locator(e.applauseIcon);
await expect(applauseIconLocator).toBeVisible();
2021-11-18 04:07:14 +08:00
await setStatus(this.page, e.away);
await this.page.waitForSelector(e.awayIcon);
const awayIconLocator = this.page.locator(e.awayIcon);
await expect(awayIconLocator).toBeVisible();
}
}
2021-11-03 06:50:20 +08:00
exports.Status = Status;