tests for new post notifications and dashboard stats
All checks were successful
Rust / Test (push) Successful in 3m47s
Rust / Rustfmt (push) Successful in 21s
Rust / Clippy (push) Successful in 1m14s
Rust / Code coverage (push) Successful in 3m49s

This commit is contained in:
Alphonse Paix
2025-09-29 18:22:15 +02:00
parent de44564ba0
commit 22c462fba3
8 changed files with 494 additions and 23 deletions

View File

@@ -34,7 +34,7 @@ async fn subscribe_persists_the_new_subscriber(connection_pool: PgPool) {
let response = app.post_subscriptions(body).await;
assert!(response.status().is_success());
let html_fragment = dbg!(response.text().await.unwrap());
let html_fragment = response.text().await.unwrap();
assert!(html_fragment.contains("You'll receive a confirmation email shortly"));
let saved = sqlx::query!("SELECT email, status FROM subscriptions")