From 1ce569bfc288a392eadf5395c8295a292c13fa48 Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Wed, 6 Dec 2023 17:59:10 +0100 Subject: [PATCH] Fix `A room with an edit is still read after restart` integ test (#12007) --- playwright/e2e/read-receipts/editing-messages.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/playwright/e2e/read-receipts/editing-messages.spec.ts b/playwright/e2e/read-receipts/editing-messages.spec.ts index 4606953810..f10263da5e 100644 --- a/playwright/e2e/read-receipts/editing-messages.spec.ts +++ b/playwright/e2e/read-receipts/editing-messages.spec.ts @@ -116,18 +116,18 @@ test.describe("Read receipts", () => { // Then the room remains read await util.assertStillRead(room2); }); - // XXX: fails because flaky: https://github.com/vector-im/element-web/issues/26341 - test.skip("A room with an edit is still read after restart", async ({ + test("A room with an edit is still read after restart", async ({ roomAlpha: room1, roomBeta: room2, util, msg, }) => { // Given a message is marked as read - await util.goTo(room2); - await util.receiveMessages(room2, ["Msg1"]); - await util.assertRead(room2); await util.goTo(room1); + await util.receiveMessages(room2, ["Msg1"]); + await util.assertUnread(room2, 1); + await util.markAsRead(room2); + await util.assertRead(room2); // When an edit appears in the room await util.receiveMessages(room2, [msg.editOf("Msg1", "Msg1 Edit1")]);