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

Commit 5a3c32e

Browse files
authored
More assertions about threads being read (#11505)
1 parent 0b50e02 commit 5a3c32e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cypress/e2e/read-receipts/high-level.spec.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,6 +1020,7 @@ describe("Read receipts", () => {
10201020
goTo(room2);
10211021
openThread("Msg1");
10221022
assertRead(room2);
1023+
backToThreadsList();
10231024
goTo(room1);
10241025
receiveMessages(room2, [editOf("Resp1", "Edit1")]);
10251026
assertUnread(room2, 1);
@@ -1112,17 +1113,20 @@ describe("Read receipts", () => {
11121113
assertUnread(room2, 2);
11131114
goTo(room2);
11141115
openThread("Msg1");
1116+
backToThreadsList();
11151117
assertRead(room2);
11161118
goTo(room1);
11171119

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

1121-
// Then the room is unread but not the thread
1123+
// Then the room is unread
11221124
assertUnread(room2, 1);
1125+
1126+
// But the thread is read
11231127
goTo(room2);
11241128
assertRead(room2);
1125-
assertReadThread("Msg1");
1129+
assertReadThread("Edit1");
11261130
});
11271131
it("Reading an edit of a thread root makes the room read", () => {
11281132
// Given a fully-read thread exists

0 commit comments

Comments
 (0)