diff --git a/crates/matrix-sdk-ui/tests/integration/room_list_service.rs b/crates/matrix-sdk-ui/tests/integration/room_list_service.rs index fec7c54fc27..2309885499b 100644 --- a/crates/matrix-sdk-ui/tests/integration/room_list_service.rs +++ b/crates/matrix-sdk-ui/tests/integration/room_list_service.rs @@ -1476,6 +1476,16 @@ async fn test_dynamic_entries_stream() -> Result<(), Error> { push front [ "!r4:bar.org" ]; end; }; + assert_entries_batch! { + [dynamic_entries_stream] + set [ 1 ] [ "!r1:bar.org" ]; + end; + }; + assert_entries_batch! { + [dynamic_entries_stream] + set [ 0 ] [ "!r4:bar.org" ]; + end; + }; assert_pending!(dynamic_entries_stream); sync_then_assert_request_and_fake_response! { @@ -1588,6 +1598,16 @@ async fn test_dynamic_entries_stream() -> Result<(), Error> { push front [ "!r7:bar.org" ]; end; }; + assert_entries_batch! { + [dynamic_entries_stream] + set [ 1 ] [ "!r5:bar.org" ]; + end; + }; + assert_entries_batch! { + [dynamic_entries_stream] + set [ 0 ] [ "!r7:bar.org" ]; + end; + }; assert_pending!(dynamic_entries_stream); // Now, let's change the dynamic entries!