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

Commit a621dfa

Browse files
authored
Expand a thread reply test to be more explicit (#11502)
1 parent a4b8616 commit a621dfa

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,9 +713,18 @@ describe("Read receipts", () => {
713713
assertUnread(room2, 30);
714714
});
715715
it("Creating a new thread based on a reply makes the room unread", () => {
716+
// Given a message and reply exist and are read
716717
goTo(room1);
717-
receiveMessages(room2, ["Msg1", replyTo("Msg1", "Reply1"), threadedOff("Reply1", "Resp1")]);
718-
assertUnread(room2, 3);
718+
receiveMessages(room2, ["Msg1", replyTo("Msg1", "Reply1")]);
719+
goTo(room2);
720+
goTo(room1);
721+
assertRead(room2);
722+
723+
// When I receive a thread message created on the reply
724+
receiveMessages(room2, [threadedOff("Reply1", "Resp1")]);
725+
726+
// Then the room is unread
727+
assertUnread(room2, 1);
719728
});
720729
it("Reading a thread whose root is a reply makes the room read", () => {
721730
goTo(room1);

0 commit comments

Comments
 (0)