Skip to content

Commit 824cb06

Browse files
committed
test(ui): Assert the roominfo updates.
1 parent 7bd0427 commit 824cb06

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

crates/matrix-sdk-ui/tests/integration/room_list_service.rs

+20
Original file line numberDiff line numberDiff line change
@@ -1476,6 +1476,16 @@ async fn test_dynamic_entries_stream() -> Result<(), Error> {
14761476
push front [ "!r4:bar.org" ];
14771477
end;
14781478
};
1479+
assert_entries_batch! {
1480+
[dynamic_entries_stream]
1481+
set [ 1 ] [ "!r1:bar.org" ];
1482+
end;
1483+
};
1484+
assert_entries_batch! {
1485+
[dynamic_entries_stream]
1486+
set [ 0 ] [ "!r4:bar.org" ];
1487+
end;
1488+
};
14791489
assert_pending!(dynamic_entries_stream);
14801490

14811491
sync_then_assert_request_and_fake_response! {
@@ -1588,6 +1598,16 @@ async fn test_dynamic_entries_stream() -> Result<(), Error> {
15881598
push front [ "!r7:bar.org" ];
15891599
end;
15901600
};
1601+
assert_entries_batch! {
1602+
[dynamic_entries_stream]
1603+
set [ 1 ] [ "!r5:bar.org" ];
1604+
end;
1605+
};
1606+
assert_entries_batch! {
1607+
[dynamic_entries_stream]
1608+
set [ 0 ] [ "!r7:bar.org" ];
1609+
end;
1610+
};
15911611
assert_pending!(dynamic_entries_stream);
15921612

15931613
// Now, let's change the dynamic entries!

0 commit comments

Comments
 (0)