Skip to content

Commit

Permalink
fix: Adopts to UI changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Feb 19, 2025
1 parent 9200084 commit 0dfa604
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public void testHangUpAndChangeModerator()
Actions moderatorActions = new Actions(moderatorDriver);

moderator.getParticipantsPane().open();
moderator.getParticipantsPane().allowVideo(nonModerator, false);
moderator.getParticipantsPane().allowVideo(nonModerator, true);
moderator.getParticipantsPane().askToUnmute(nonModerator, false);
nonModerator.getNotifications().getAskToUnmuteNotification();
MeetUIUtils.unmuteAudioAndCheck(nonModerator, participant1);
Expand Down Expand Up @@ -406,6 +406,8 @@ private void unmuteByModerator(WebParticipant moderator, WebParticipant particip

askParticipantToUnmute(moderator, participant);

participant.getNotifications().closeAskToUnmuteNotification();

MeetUIUtils.unmuteAudioAndCheck(participant, moderator);
MeetUIUtils.unmuteVideoAndCheck(participant, moderator);

Expand Down Expand Up @@ -439,7 +441,7 @@ private void askParticipantToUnmute(WebParticipant moderator, WebParticipant par
{
ParticipantsPane participantsPane = moderator.getParticipantsPane();

participantsPane.allowVideo(participant, false);
participantsPane.allowVideo(participant, true);
participantsPane.askToUnmute(participant, false);

participant.getNotifications().getAskToUnmuteNotification();
Expand Down
4 changes: 3 additions & 1 deletion src/test/java/org/jitsi/meet/test/util/MeetUIUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ public static void waitForRemoteVideo(WebDriver driver, String endpointId, boole
TestUtils.waitForCondition(
driver,
10,
(ExpectedCondition<Boolean>) d ->
(ExpectedCondition<Boolean>) d ->
{
WebElement videoElement
= driver.findElement(By.xpath("//span[@id='participant_" + endpointId + "']"));
Expand Down Expand Up @@ -1248,6 +1248,8 @@ public static void unmuteVideoAndCheck(WebParticipant participant,
public static void unmuteAudioAndCheck(WebParticipant participant,
WebParticipant participantCheck)
{
participant.getNotifications().closeAskToUnmuteNotification();

WebDriver driver = participant.getDriver();

// Make sure that there is the audio unmute button
Expand Down

0 comments on commit 0dfa604

Please sign in to comment.