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

More assertions about threads being read #11505

Merged
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
8 changes: 6 additions & 2 deletions cypress/e2e/read-receipts/high-level.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,7 @@ describe("Read receipts", () => {
goTo(room2);
openThread("Msg1");
assertRead(room2);
backToThreadsList();
goTo(room1);
receiveMessages(room2, [editOf("Resp1", "Edit1")]);
assertUnread(room2, 1);
Expand Down Expand Up @@ -1112,17 +1113,20 @@ describe("Read receipts", () => {
assertUnread(room2, 2);
goTo(room2);
openThread("Msg1");
backToThreadsList();
assertRead(room2);
goTo(room1);

// When the thread root is edited
receiveMessages(room2, [editOf("Msg1", "Edit1")]);

// Then the room is unread but not the thread
// Then the room is unread
assertUnread(room2, 1);

// But the thread is read
goTo(room2);
assertRead(room2);
assertReadThread("Msg1");
assertReadThread("Edit1");
});
it("Reading an edit of a thread root makes the room read", () => {
// Given a fully-read thread exists
Expand Down
Loading