voelin-gpui: a test that the voice page marks no chat as read; a heading
Asking for the voice page opens the channel's chat tab in the state (logic::show_voice_view, open_chat with focus), which a front end that shows no chat must not mark as read: the test looks at the store. The properties and callbacks heading of the voice section is named for the page, so that its anchor does not collide with the tree section's. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4b83c649f7
commit
1a656eef86
2 files changed
+5
-1
No files matched your search
@@ -93,6 +93,10 @@ fn the_voice_page_takes_the_main_area_while_voice_is_connected_and_asked_for(
|
||||
assert!(at(cx, "main-server").is_none(), "in the server page's place");
|
||||
assert!(shell.view.read_with(cx, |view, _| view.voice_page_shown()));
|
||||
assert!(shell.app.read_with(cx, |app, _| app.vm.voice_view), "the view model knows");
|
||||
// Asking for the page opens the channel's chat tab in the state, which a
|
||||
// front end that shows no chat does not mark as read: nothing is stored.
|
||||
let reads = shell.app.read_with(cx, |app, _| app.backend().store.chat_reads("demo-server"));
|
||||
assert!(reads.unwrap().is_empty(), "no read mark for a chat nobody sees");
|
||||
|
||||
click(cx, "voice-chat-only");
|
||||
assert!(at(cx, "voice-page").is_none() && at(cx, "main-server").is_some());
|
||||
|
||||
Reference in new issue
Block a user