Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Add an assertion that the thread is read after I read it #11503

Merged
merged 3 commits into from
Sep 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cypress/e2e/read-receipts/high-level.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -727,16 +727,20 @@ describe("Read receipts", () => {
assertUnread(room2, 1);
});
it("Reading a thread whose root is a reply makes the room read", () => {
// Given an unread thread off a reply exists
goTo(room1);
receiveMessages(room2, ["Msg1", replyTo("Msg1", "Reply1"), threadedOff("Reply1", "Resp1")]);
assertUnread(room2, 3);

goTo(room2);
assertUnread(room2, 1);
assertUnreadThread("Reply1");

// When I read the thread
openThread("Reply1");

// Then the room and thread are read
assertRead(room2);
assertReadThread("Reply1");
});
});
});
Expand Down
Loading