This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
cypress/e2e/read-receipts Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1020,6 +1020,7 @@ describe("Read receipts", () => {
1020
1020
goTo ( room2 ) ;
1021
1021
openThread ( "Msg1" ) ;
1022
1022
assertRead ( room2 ) ;
1023
+ backToThreadsList ( ) ;
1023
1024
goTo ( room1 ) ;
1024
1025
receiveMessages ( room2 , [ editOf ( "Resp1" , "Edit1" ) ] ) ;
1025
1026
assertUnread ( room2 , 1 ) ;
@@ -1112,17 +1113,20 @@ describe("Read receipts", () => {
1112
1113
assertUnread ( room2 , 2 ) ;
1113
1114
goTo ( room2 ) ;
1114
1115
openThread ( "Msg1" ) ;
1116
+ backToThreadsList ( ) ;
1115
1117
assertRead ( room2 ) ;
1116
1118
goTo ( room1 ) ;
1117
1119
1118
1120
// When the thread root is edited
1119
1121
receiveMessages ( room2 , [ editOf ( "Msg1" , "Edit1" ) ] ) ;
1120
1122
1121
- // Then the room is unread but not the thread
1123
+ // Then the room is unread
1122
1124
assertUnread ( room2 , 1 ) ;
1125
+
1126
+ // But the thread is read
1123
1127
goTo ( room2 ) ;
1124
1128
assertRead ( room2 ) ;
1125
- assertReadThread ( "Msg1 " ) ;
1129
+ assertReadThread ( "Edit1 " ) ;
1126
1130
} ) ;
1127
1131
it ( "Reading an edit of a thread root makes the room read" , ( ) => {
1128
1132
// Given a fully-read thread exists
You can’t perform that action at this time.
0 commit comments