From 078503b1b354635e4f9b2851dab7ebe4b68a881f Mon Sep 17 00:00:00 2001 From: damencho Date: Mon, 24 Mar 2025 08:54:32 -0500 Subject: [PATCH] fix(tests): In AV moderation test close notification. The notification randomly prevents clicking on unmute button. --- tests/pageobjects/Notifications.ts | 8 ++++++++ tests/specs/3way/audioVideoModeration.spec.ts | 1 + 2 files changed, 9 insertions(+) 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);