Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(tests): In AV moderation test close notification.

damencho078503b1b354
diff --git a/tests/pageobjects/Notifications.ts b/tests/pageobjects/Notifications.ts
index 02fa703198..3102fa709f 100644
--- a/tests/pageobjects/Notifications.ts
+++ b/tests/pageobjects/Notifications.ts
@@ -5,6 +5,7 @@ const ASK_TO_UNMUTE_NOTIFICATION_ID = 'notify.hostAskedUnmute';
const JOIN_ONE_TEST_ID = 'notify.connectedOneMember';
const JOIN_TWO_TEST_ID = 'notify.connectedTwoMembers';
const JOIN_MULTIPLE_TEST_ID = 'notify.connectedThreePlusMembers';
+const YOU_ARE_MUTED_TEST_ID = 'notify.mutedTitle';
const LOBBY_ACCESS_DENIED_TEST_ID = 'lobby.joinRejectedMessage';
const LOBBY_ENABLED_TEST_ID = 'lobby.notificationLobbyEnabled';
const LOBBY_KNOCKING_PARTICIPANT_NOTIFICATION_XPATH
@@ -256,4 +257,11 @@ export default class Notifications extends BasePageObject {
await dismissButton.moveTo();
await dismissButton.click();
}
+
+ /**
+ * Closes the `you are muted` notification.
+ */
+ async closeYouAreMutedNotification() {
+ return this.closeNotification(YOU_ARE_MUTED_TEST_ID, true);
+ }
}
diff --git a/tests/specs/3way/audioVideoModeration.spec.ts b/tests/specs/3way/audioVideoModeration.spec.ts
index d247b634d9..a3e0c0c297 100644
--- a/tests/specs/3way/audioVideoModeration.spec.ts
+++ b/tests/specs/3way/audioVideoModeration.spec.ts
@@ -206,6 +206,7 @@ describe('AVModeration', () => {
});
const { p1, p2 } = ctx;
+ await p2.getNotifications().closeYouAreMutedNotification();
await tryToAudioUnmuteAndCheck(p2, p1);
await tryToVideoUnmuteAndCheck(p2, p1);