1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-12-01 03:23:30 +03:00

Fix flaky test that assumes edits count as messages

This commit is contained in:
Andy Balaam
2023-09-22 11:21:41 +01:00
parent f841757906
commit 14a622b1e8

View File

@@ -371,7 +371,7 @@ describe("Read receipts", () => {
it("A room where all threaded edits are read is still read after restart", () => { it("A room where all threaded edits are read is still read after restart", () => {
goTo(room2); goTo(room2);
receiveMessages(room2, ["Msg1", threadedOff("Msg1", "Resp1"), editOf("Resp1", "Edit1")]); receiveMessages(room2, ["Msg1", threadedOff("Msg1", "Resp1"), editOf("Resp1", "Edit1")]);
assertUnread(room2, 2); assertUnread(room2, 1);
openThread("Msg1"); openThread("Msg1");
assertRead(room2); assertRead(room2);
goTo(room1); // Make sure we are looking at room1 after reload goTo(room1); // Make sure we are looking at room1 after reload