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

38 lines
1.2 KiB
JavaScript
Raw Normal View History

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);
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);
}
2023-02-14 21:59:46 +08:00
async userListNotAppearOnMobile() {
2022-01-20 03:50:59 +08:00
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;