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);
|
2024-07-31 06:49:02 +08:00
|
|
|
await this.modPage.hasElement(e.mobileUser, 'should display the mobile user element for the moderator ');
|
2022-01-20 03:50:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
2024-07-31 06:49:02 +08:00
|
|
|
await this.modPage.wasRemoved(e.whiteboard, 'should not display the whiteboard for the moderator');
|
|
|
|
await this.userPage.wasRemoved(e.whiteboard, 'should not display the whiteboard for the attendeee');
|
2022-01-20 03:50:59 +08:00
|
|
|
}
|
|
|
|
|
2023-02-14 21:59:46 +08:00
|
|
|
async userListNotAppearOnMobile() {
|
2024-07-31 06:49:02 +08:00
|
|
|
await this.modPage.wasRemoved(e.userListItem, 'should not display the user list for the moderator');
|
|
|
|
await this.userPage.wasRemoved(e.userListItem, 'should not display the user list for the attendee');
|
2022-01-20 03:50:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
async chatPanelNotAppearOnMobile() {
|
2024-07-31 06:49:02 +08:00
|
|
|
await this.modPage.wasRemoved(e.chatButtonKey, 'should not display the chat button key for the moderator');
|
2022-01-20 03:50:59 +08:00
|
|
|
await this.userPage.waitAndClick(e.userListButton);
|
|
|
|
await this.userPage.waitAndClick(e.chatButtonKey);
|
2024-07-31 06:49:02 +08:00
|
|
|
await this.userPage.hasElement(e.chatButtonKey, 'should display the chat button key for the attendee');
|
2022-01-20 03:50:59 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
exports.MobileDevices = MobileDevices;
|