Some checks failed
Close stale issues and PRs / stale (push) Has been cancelled
23 lines
532 B
TypeScript
23 lines
532 B
TypeScript
import BasePageObject from './BasePageObject';
|
|
|
|
/**
|
|
* Chat panel elements.
|
|
*/
|
|
export default class ChatPanel extends BasePageObject {
|
|
/**
|
|
* Is chat panel open.
|
|
*/
|
|
isOpen() {
|
|
return this.participant.driver.$('#sideToolbarContainer').isExisting();
|
|
}
|
|
|
|
/**
|
|
* Presses the "chat" keyboard shortcut which opens or closes the chat
|
|
* panel.
|
|
*/
|
|
async pressShortcut() {
|
|
await this.participant.driver.$('body').click();
|
|
await this.participant.driver.keys([ 'c' ]);
|
|
}
|
|
}
|