From 3cb092f541c28edcefa78101ca11785860565ca3 Mon Sep 17 00:00:00 2001 From: Timo K Date: Wed, 15 Apr 2026 11:51:41 +0200 Subject: [PATCH] Revert "fix race in playwright sticky test" This reverts commit 57f12d3d1c5dc6af0815d8a593fa4d4c953d4935. --- playwright/reconnect.spec.ts | 2 +- playwright/spa-call-sticky.spec.ts | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/playwright/reconnect.spec.ts b/playwright/reconnect.spec.ts index e6d5f715..1a8f2c28 100644 --- a/playwright/reconnect.spec.ts +++ b/playwright/reconnect.spec.ts @@ -13,7 +13,7 @@ test.skip( 'This test is not working on firefox, page.keyboard.press("Tab") not reliable in headless mode', ); -test("can not interact with media tiles while reconnecting (only with header and footer)", async ({ +test("can only interact with header and footer while reconnecting", async ({ page, }) => { await page.goto("/"); diff --git a/playwright/spa-call-sticky.spec.ts b/playwright/spa-call-sticky.spec.ts index 65cf06ed..246b4a73 100644 --- a/playwright/spa-call-sticky.spec.ts +++ b/playwright/spa-call-sticky.spec.ts @@ -29,9 +29,6 @@ async function setupTwoUserSpaCall( let androlHasSentStickyEvent = false; - const { promise: stickyAndrolPromise, resolve: stickyAndrolResolve } = - Promise.withResolvers(); - await interceptEventSend( page, // This room is not encrypted, so the event is sent in clear @@ -39,9 +36,6 @@ async function setupTwoUserSpaCall( (req) => { androlHasSentStickyEvent = androlHasSentStickyEvent || isStickySend(req.url()); - if (androlHasSentStickyEvent) { - stickyAndrolResolve(); - } }, ); @@ -59,8 +53,6 @@ async function setupTwoUserSpaCall( let pevaraHasSentStickyEvent = false; - const { promise: stickyPevaraPromise, resolve: stickyPevaraResolve } = - Promise.withResolvers(); await interceptEventSend( guestPage, // This room is not encrypted, so the event is sent in clear @@ -68,9 +60,6 @@ async function setupTwoUserSpaCall( (req) => { pevaraHasSentStickyEvent = pevaraHasSentStickyEvent || isStickySend(req.url()); - if (pevaraHasSentStickyEvent) { - stickyPevaraResolve(); - } }, ); @@ -81,9 +70,7 @@ async function setupTwoUserSpaCall( "2_0", ); // Assert both sides have sent sticky membership events - await stickyAndrolPromise; expect(androlHasSentStickyEvent).toEqual(true); - await stickyPevaraPromise; expect(pevaraHasSentStickyEvent).toEqual(true); return { guestPage };