/**
   * Closes the participant and leaves the owner alone in the room. Mutes the owner and then joins
   * new participant and checks the status of the mute icon. At the end unmutes to clear the state.
   */
  public void muteOwnerBeforeSecondParticipantJoins() {
    System.err.println("Start muteOwnerBeforeSecondParticipantJoins.");

    WebDriver owner = ConferenceFixture.getOwner();
    ConferenceFixture.close(ConferenceFixture.getSecondParticipant());

    // just in case wait
    TestUtils.waitMillis(1000);

    MeetUIUtils.clickOnToolbarButton(owner, "toolbar_button_mute");

    WebDriver secondParticipant = ConferenceFixture.startSecondParticipant();

    MeetUtils.waitForParticipantToJoinMUC(secondParticipant, 15);

    MeetUtils.waitForIceConnected(secondParticipant);

    MeetUIUtils.assertMuteIconIsDisplayed(
        secondParticipant,
        owner,
        true, // should be muted
        false, // audio
        "owner");

    // now lets unmute
    unMuteOwnerAndCheck();
  }
Beispiel #2
0
 /** Asserts that 'owner' and 'secondParticipant' are connected via UDP. */
 public void udpTest() {
   assertEquals(
       "The owner must be connected through UDP",
       "udp",
       MeetUtils.getProtocol(ConferenceFixture.getOwner()));
   assertEquals(
       "The second participant must be connected through UDP",
       "udp",
       MeetUtils.getProtocol(ConferenceFixture.getSecondParticipant()));
 }