Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(tests): Adopts tests to the AV moderation UI changes.
damencho9108b7ebeced
diff --git a/tests/helpers/participants.ts b/tests/helpers/participants.tsindex cd5641de8b..8616e03f89 100644--- a/tests/helpers/participants.ts+++ b/tests/helpers/participants.ts@@ -253,6 +253,7 @@ export async function muteAudioAndCheck(testee: Participant, observer: Participa* @param observer*/export async function unmuteAudioAndCheck(testee: Participant, observer: Participant) {+ await testee.getNotifications().closeAskToUnmuteNotification();await testee.getToolbar().clickAudioUnmuteButton();await testee.getFilmstrip().assertAudioMuteIconIsDisplayed(testee, true);await observer.getFilmstrip().assertAudioMuteIconIsDisplayed(testee, true);diff --git a/tests/pageobjects/Notifications.ts b/tests/pageobjects/Notifications.tsindex 7e88e424bb..47f079dcb9 100644--- a/tests/pageobjects/Notifications.ts+++ b/tests/pageobjects/Notifications.ts@@ -44,6 +44,13 @@ export default class Notifications extends BasePageObject {await displayNameEl.waitForDisplayed();}+ /**+ * Closes the ask to unmute notification.+ */+ async closeAskToUnmuteNotification() {+ return this.closeLobbyNotification(ASK_TO_UNMUTE_NOTIFICATION_ID);+ }+/*** Dismisses any join notifications.*/diff --git a/tests/pageobjects/ParticipantsPane.ts b/tests/pageobjects/ParticipantsPane.tsindex 8af79c4dc6..c36b66233a 100644--- a/tests/pageobjects/ParticipantsPane.ts+++ b/tests/pageobjects/ParticipantsPane.ts@@ -107,10 +107,9 @@ export default class ParticipantsPane extends BasePageObject {}const participantId = await participantToUnmute.getEndpointId();- const participantItem = this.participant.driver.$(`#participant-item-${participantId}`);- await participantItem.waitForExist();- await participantItem.moveTo();+ await this.selectParticipant(participantToUnmute);+ await this.openParticipantContextMenu(participantToUnmute);const unmuteButton = this.participant.driver.$(`button[data-testid="unmute-video-${participantId}"]`);diff --git a/tests/specs/3way/audioVideoModeration.spec.ts b/tests/specs/3way/audioVideoModeration.spec.tsindex 192eef6bc5..5320fbfc30 100644--- a/tests/specs/3way/audioVideoModeration.spec.ts+++ b/tests/specs/3way/audioVideoModeration.spec.ts@@ -244,6 +244,7 @@ async function unmuteByModerator(await moderatorParticipantsPane.allowVideo(participant);await moderatorParticipantsPane.askToUnmute(participant, false);await participant.getNotifications().waitForAskToUnmuteNotification();+ await participant.getNotifications().closeAskToUnmuteNotification();await unmuteAudioAndCheck(participant, moderator);await unmuteVideoAndCheck(participant, moderator);