From 824cb0682a072ed73a2c8f1c7d1b92b83ddf34c2 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 1 Jul 2024 14:56:48 +0200 Subject: [PATCH] test(ui): Assert the roominfo updates. --- .../tests/integration/room_list_service.rs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) 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!