You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PreJoinScreen.ts 873B

12345678910111213141516171819202122232425262728293031
  1. import PreMeetingScreen from './PreMeetingScreen';
  2. const DISPLAY_NAME_ID = 'premeeting-name-input';
  3. const JOIN_BUTTON_TEST_ID = 'prejoin.joinMeeting';
  4. /**
  5. * Page object for the PreJoin screen.
  6. */
  7. export default class PreJoinScreen extends PreMeetingScreen {
  8. /**
  9. * Returns the join button element.
  10. */
  11. getJoinButton(): ChainablePromiseElement {
  12. return this.participant.driver.$(`[data-testid="${JOIN_BUTTON_TEST_ID}"]`);
  13. }
  14. /**
  15. * Returns the display name input element.
  16. */
  17. getDisplayNameInput(): ChainablePromiseElement {
  18. return this.participant.driver.$(`#${DISPLAY_NAME_ID}`);
  19. }
  20. /**
  21. * Waits for pre join screen to load.
  22. */
  23. waitForLoading(): Promise<void> {
  24. return this.participant.driver.$('[data-testid="prejoin.screen"]')
  25. .waitForDisplayed({ timeout: 3000 });
  26. }
  27. }