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

The notification randomly prevents clicking on unmute button.
This commit is contained in:
damencho
2025-03-24 08:54:32 -05:00
committed by Дамян Минков
parent 8c4e9f823d
commit 078503b1b3
2 changed files with 9 additions and 0 deletions

View File

@@ -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);
}
}

View File

@@ -206,6 +206,7 @@ describe('AVModeration', () => {
});
const { p1, p2 } = ctx;
await p2.getNotifications().closeYouAreMutedNotification();
await tryToAudioUnmuteAndCheck(p2, p1);
await tryToVideoUnmuteAndCheck(p2, p1);