Skip to content

Commit

Permalink
test(ui): Assert the roominfo updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Jul 1, 2024
1 parent 7bd0427 commit 824cb06
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions crates/matrix-sdk-ui/tests/integration/room_list_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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! {
Expand Down Expand Up @@ -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!
Expand Down

0 comments on commit 824cb06

Please sign in to comment.