More assertions about threads being read (#11505)

pull/28788/head^2
Andy Balaam 2023-09-18 10:09:47 +01:00 committed by GitHub
parent 0b50e02790
commit 5a3c32e26c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -1020,6 +1020,7 @@ describe("Read receipts", () => {
goTo(room2);
openThread("Msg1");
assertRead(room2);
backToThreadsList();
goTo(room1);
receiveMessages(room2, [editOf("Resp1", "Edit1")]);
assertUnread(room2, 1);
@ -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