test(examples): add SSE notification proof

req: examples/001

req: push/001

req: push/003
This commit is contained in:
slhx agent
2026-05-10 23:37:55 +02:00
parent 0a50487a3a
commit 4e971d9597
2 changed files with 17 additions and 0 deletions
+13
View File
@@ -105,4 +105,17 @@ mod tests {
assert!(effect.has_slot(ui::slots::login_status));
assert!(matches!(effect.ops(), [Effect::Put { .. }]));
}
// req: examples/001 req: push/001 req: push/003 req: build/001 req: build/005
#[test]
fn sse_notifications_update_a_generated_slot() {
fn notification(message: &str) -> impl IntoEffect {
ui::slots::notifications.text(message)
}
let effect = inspect(notification("Build finished"));
assert!(effect.has_slot(ui::slots::notifications));
assert!(matches!(effect.ops(), [Effect::Put { .. }]));
}
}