From 834dc2be426675c0959c509cdfd722fa4c6a2b26 Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Tue, 13 Jan 2026 17:36:31 +0100 Subject: [PATCH] frontend: Update E2EE UI tests to reflect changes in expected video poster counts --- .../frontend/webcomponent/tests/e2e/e2ee-ui.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/meet-ce/frontend/webcomponent/tests/e2e/e2ee-ui.test.ts b/meet-ce/frontend/webcomponent/tests/e2e/e2ee-ui.test.ts index e1a5bbf7..30d9f8ec 100644 --- a/meet-ce/frontend/webcomponent/tests/e2e/e2ee-ui.test.ts +++ b/meet-ce/frontend/webcomponent/tests/e2e/e2ee-ui.test.ts @@ -302,12 +302,12 @@ test.describe('E2EE UI Tests', () => { // Each participant should see an encryption error for the other's video const videoPosterCount = await countElementsInIframe(page, '.encryption-error-poster'); - //! FIXME: Temporarily expecting 2 posters due to audio and video streams (needs to be fixed in ov-components) - expect(videoPosterCount).toBe(2); + // With Smart Layout by default, audio are not in DOM, only video streams are. + expect(videoPosterCount).toBe(1); const videoPosterCount2 = await countElementsInIframe(page2, '.encryption-error-poster'); - //! FIXME: Temporarily expecting 2 posters due to audio and video streams (needs to be fixed in ov-components) - expect(videoPosterCount2).toBe(2); + // With Smart Layout by default, audio are not in DOM, only video streams are. + expect(videoPosterCount2).toBe(1); // Add additional participant with correct key to verify they can see/hear each other const page3 = await context.newPage(); @@ -342,8 +342,8 @@ test.describe('E2EE UI Tests', () => { expect(videoCount3).toBeGreaterThanOrEqual(2); const videoPosterCount3 = await countElementsInIframe(page3, '.encryption-error-poster'); - //! FIXME: Temporarily expecting 2 posters due to audio and video streams (needs to be fixed in ov-components) - expect(videoPosterCount3).toBe(2); + // With Smart Layout by default, audio are not in DOM, only video streams are. + expect(videoPosterCount3).toBe(1); // Cleanup participant 2 await Promise.all([leaveRoom(page2), leaveRoom(page3)]);