mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 03:12:29 +00:00
fix(tests): In AV moderation test close notification.
The notification randomly prevents clicking on unmute button.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -206,6 +206,7 @@ describe('AVModeration', () => {
|
||||
});
|
||||
const { p1, p2 } = ctx;
|
||||
|
||||
await p2.getNotifications().closeYouAreMutedNotification();
|
||||
await tryToAudioUnmuteAndCheck(p2, p1);
|
||||
await tryToVideoUnmuteAndCheck(p2, p1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user