mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
32 lines
863 B
TypeScript
32 lines
863 B
TypeScript
import PreMeetingScreen from './PreMeetingScreen';
|
|
|
|
const DISPLAY_NAME_ID = 'premeeting-name-input';
|
|
const JOIN_BUTTON_TEST_ID = 'prejoin.joinMeeting';
|
|
|
|
/**
|
|
* Page object for the PreJoin screen.
|
|
*/
|
|
export default class PreJoinScreen extends PreMeetingScreen {
|
|
/**
|
|
* Returns the join button element.
|
|
*/
|
|
getJoinButton(): ChainablePromiseElement {
|
|
return this.participant.driver.$(`[data-testid="${JOIN_BUTTON_TEST_ID}"]`);
|
|
}
|
|
|
|
/**
|
|
* Returns the display name input element.
|
|
*/
|
|
getDisplayNameInput(): ChainablePromiseElement {
|
|
return this.participant.driver.$(`#${DISPLAY_NAME_ID}`);
|
|
}
|
|
|
|
/**
|
|
* Waits for pre join screen to load.
|
|
*/
|
|
async waitForLoading() {
|
|
await this.participant.driver.$('[data-testid="prejoin.screen"]')
|
|
.waitForDisplayed({ timeout: 3000 });
|
|
}
|
|
}
|