Edit profile and templates update
Some checks failed
Rust / Test (push) Failing after 4m44s
Rust / Rustfmt (push) Successful in 21s
Rust / Clippy (push) Failing after 1m34s
Rust / Code coverage (push) Failing after 3m8s

This commit is contained in:
Alphonse Paix
2025-10-06 19:13:51 +02:00
parent da590fb7c6
commit fb3e0e12c2
24 changed files with 493 additions and 263 deletions

View File

@@ -279,7 +279,7 @@ impl TestApp {
pub async fn get_admin_dashboard(&self) -> reqwest::Response {
self.api_client
.get(format!("{}/admin/dashboard", &self.address))
.get(format!("{}/dashboard", &self.address))
.send()
.await
.expect("Failed to execute request")
@@ -328,7 +328,7 @@ impl TestApp {
Body: serde::Serialize,
{
self.api_client
.post(format!("{}/admin/newsletters", self.address))
.post(format!("{}/newsletters", self.address))
.form(body)
.send()
.await
@@ -357,7 +357,7 @@ impl TestApp {
pub async fn logout(&self) -> reqwest::Response {
self.api_client
.get(format!("{}/admin/logout", self.address))
.get(format!("{}/logout", self.address))
.send()
.await
.expect("Failed to execute request")
@@ -368,7 +368,7 @@ impl TestApp {
Body: serde::Serialize,
{
self.api_client
.post(format!("{}/admin/password", self.address))
.post(format!("{}/password", self.address))
.form(body)
.send()
.await
@@ -380,7 +380,7 @@ impl TestApp {
Body: serde::Serialize,
{
self.api_client
.post(format!("{}/admin/posts", self.address))
.post(format!("{}/posts", self.address))
.form(body)
.send()
.await