2022-01-20 03:50:59 +08:00
|
|
|
const { MultiUsers } = require("./multiusers");
|
|
|
|
const e = require('../core/elements');
|
|
|
|
|
|
|
|
class MobileDevices extends MultiUsers {
|
|
|
|
constructor(browser, context) {
|
|
|
|
super(browser, context);
|
|
|
|
}
|
|
|
|
|
|
|
|
async mobileTagName() {
|
2022-02-08 03:22:48 +08:00
|
|
|
await this.modPage.waitAndClick(e.userListToggleBtn);
|
2022-03-02 04:11:45 +08:00
|
|
|
await this.modPage.waitForSelector(e.currentUser);
|
2022-01-20 03:50:59 +08:00
|
|
|
await this.modPage.hasElement(e.mobileUser);
|
|
|
|
}
|
|
|
|
|
|
|
|
async whiteboardNotAppearOnMobile() {
|
|
|
|
await this.modPage.waitForSelector(e.whiteboard);
|
|
|
|
await this.modPage.waitAndClick(e.userListButton);
|
|
|
|
await this.userPage.waitAndClick(e.userListButton);
|
|
|
|
await this.userPage.waitAndClick(e.chatButtonKey);
|
|
|
|
await this.modPage.wasRemoved(e.whiteboard);
|
|
|
|
await this.userPage.wasRemoved(e.whiteboard);
|
|
|
|
}
|
|
|
|
|
|
|
|
async userlistNotAppearOnMobile() {
|
|
|
|
await this.modPage.wasRemoved(e.userListItem);
|
|
|
|
await this.userPage.wasRemoved(e.userListItem);
|
|
|
|
}
|
|
|
|
|
|
|
|
async chatPanelNotAppearOnMobile() {
|
|
|
|
await this.modPage.wasRemoved(e.chatButtonKey);
|
|
|
|
await this.userPage.waitAndClick(e.userListButton);
|
|
|
|
await this.userPage.waitAndClick(e.chatButtonKey);
|
|
|
|
await this.userPage.hasElement(e.chatButtonKey);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
exports.MobileDevices = MobileDevices;
|