feat(tests): Adds check for name on join/leave webhooks.

This commit is contained in:
damencho
2025-03-27 15:00:52 -05:00
committed by Дамян Минков
parent 8745f07052
commit 153f67d852

View File

@@ -17,6 +17,7 @@ async function checkParticipantLeftHook(p: Participant, reason: string) {
conference: string;
disconnectReason: string;
isBreakout: boolean;
name: string;
participantId: string;
};
eventType: string;
@@ -27,6 +28,7 @@ async function checkParticipantLeftHook(p: Participant, reason: string) {
expect(event.data.disconnectReason).toBe(reason);
expect(event.data.isBreakout).toBe(false);
expect(event.data.participantId).toBe(await p.getEndpointId());
expect(event.data.name).toBe(p.displayName);
}
}
@@ -290,6 +292,7 @@ describe('Participants presence', () => {
expect(event.data.moderator).toBe(false);
expect(event.data.name).toBe(await p2.getLocalDisplayName());
expect(event.data.participantId).toBe(await p2.getEndpointId());
expect(event.data.name).toBe(p2.displayName);
}
await p1.switchToAPI();