Files
jitsi-meet/tests/pageobjects/BaseDialog.ts
Дамян Минков c6cce9253c feat(tests): Adds breakout tests. (#15414)
* feat(tests): Introduces BasePageObject.

* fix(tests): Use wdio aria selector where possible.

* fix(tests): Correct test exclusion for Firefox.

* fix(tests): Rearrange code.

* feat(tests): Adds breakout tests.
2024-12-20 06:17:49 -06:00

24 lines
583 B
TypeScript

import BasePageObject from './BasePageObject';
const CLOSE_BUTTON = 'modal-header-close-button';
const OK_BUTTON = 'modal-dialog-ok-button';
/**
* Base class for all dialogs.
*/
export default class BaseDialog extends BasePageObject {
/**
* Clicks on the X (close) button.
*/
async clickCloseButton(): Promise<void> {
await this.participant.driver.$(`#${CLOSE_BUTTON}`).click();
}
/**
* Clicks on the ok button.
*/
async clickOkButton(): Promise<void> {
await this.participant.driver.$(`#${OK_BUTTON}`).click();
}
}