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

38 lines
1.6 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);
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);
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() {
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() {
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);
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;