Fix a test that was expecting an edit to be considered unread (#11847)
This commit is contained in:
@@ -134,8 +134,7 @@ describe("Read receipts", () => {
|
|||||||
goTo(room1);
|
goTo(room1);
|
||||||
assertStillRead(room2);
|
assertStillRead(room2);
|
||||||
});
|
});
|
||||||
// XXX: fails because we see a dot instead of an unread number - probably the server and client disagree
|
it("Editing a message after marking as read makes the room unread", () => {
|
||||||
it.skip("Editing a message after marking as read makes the room unread", () => {
|
|
||||||
// Given the room is marked as read
|
// Given the room is marked as read
|
||||||
goTo(room1);
|
goTo(room1);
|
||||||
receiveMessages(room2, ["Msg1"]);
|
receiveMessages(room2, ["Msg1"]);
|
||||||
@@ -146,8 +145,8 @@ describe("Read receipts", () => {
|
|||||||
// When a message is edited
|
// When a message is edited
|
||||||
receiveMessages(room2, [editOf("Msg1", "Msg1 Edit1")]);
|
receiveMessages(room2, [editOf("Msg1", "Msg1 Edit1")]);
|
||||||
|
|
||||||
// Then the room becomes unread
|
// Then the room remains unread
|
||||||
assertUnread(room2, 1);
|
assertStillRead(room2);
|
||||||
});
|
});
|
||||||
it("Editing a reply after reading it makes the room unread", () => {
|
it("Editing a reply after reading it makes the room unread", () => {
|
||||||
// Given the room is all read
|
// Given the room is all read
|
||||||
|
|||||||
Reference in New Issue
Block a user