Revert "fix race in playwright sticky test"

This reverts commit 57f12d3d1c.
This commit is contained in:
Timo K
2026-04-15 11:51:41 +02:00
parent b59600099d
commit 3cb092f541
2 changed files with 1 additions and 14 deletions

View File

@@ -13,7 +13,7 @@ test.skip(
'This test is not working on firefox, page.keyboard.press("Tab") not reliable in headless mode', '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, page,
}) => { }) => {
await page.goto("/"); await page.goto("/");

View File

@@ -29,9 +29,6 @@ async function setupTwoUserSpaCall(
let androlHasSentStickyEvent = false; let androlHasSentStickyEvent = false;
const { promise: stickyAndrolPromise, resolve: stickyAndrolResolve } =
Promise.withResolvers<void>();
await interceptEventSend( await interceptEventSend(
page, page,
// This room is not encrypted, so the event is sent in clear // This room is not encrypted, so the event is sent in clear
@@ -39,9 +36,6 @@ async function setupTwoUserSpaCall(
(req) => { (req) => {
androlHasSentStickyEvent = androlHasSentStickyEvent =
androlHasSentStickyEvent || isStickySend(req.url()); androlHasSentStickyEvent || isStickySend(req.url());
if (androlHasSentStickyEvent) {
stickyAndrolResolve();
}
}, },
); );
@@ -59,8 +53,6 @@ async function setupTwoUserSpaCall(
let pevaraHasSentStickyEvent = false; let pevaraHasSentStickyEvent = false;
const { promise: stickyPevaraPromise, resolve: stickyPevaraResolve } =
Promise.withResolvers<void>();
await interceptEventSend( await interceptEventSend(
guestPage, guestPage,
// This room is not encrypted, so the event is sent in clear // This room is not encrypted, so the event is sent in clear
@@ -68,9 +60,6 @@ async function setupTwoUserSpaCall(
(req) => { (req) => {
pevaraHasSentStickyEvent = pevaraHasSentStickyEvent =
pevaraHasSentStickyEvent || isStickySend(req.url()); pevaraHasSentStickyEvent || isStickySend(req.url());
if (pevaraHasSentStickyEvent) {
stickyPevaraResolve();
}
}, },
); );
@@ -81,9 +70,7 @@ async function setupTwoUserSpaCall(
"2_0", "2_0",
); );
// Assert both sides have sent sticky membership events // Assert both sides have sent sticky membership events
await stickyAndrolPromise;
expect(androlHasSentStickyEvent).toEqual(true); expect(androlHasSentStickyEvent).toEqual(true);
await stickyPevaraPromise;
expect(pevaraHasSentStickyEvent).toEqual(true); expect(pevaraHasSentStickyEvent).toEqual(true);
return { guestPage }; return { guestPage };