Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

LobbyScreen.ts 853B

123456789101112131415161718192021222324252627282930
  1. import PreMeetingScreen from './PreMeetingScreen';
  2. const DISPLAY_NAME_TEST_ID = 'lobby.nameField';
  3. const JOIN_BUTTON_TEST_ID = 'lobby.knockButton';
  4. /**
  5. * Page object for the Lobby screen.
  6. */
  7. export default class LobbyScreen 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.$(`[data-testid="${DISPLAY_NAME_TEST_ID}"]`);
  19. }
  20. /**
  21. * Waits for lobby screen to load.
  22. */
  23. waitForLoading(): Promise<void> {
  24. return this.participant.driver.$('.lobby-screen').waitForDisplayed({ timeout: 4000 });
  25. }
  26. }