web using penguin-ui

This commit is contained in:
Priec
2026-08-07 21:37:40 +02:00
parent 7cda7ea833
commit c47e236713
8 changed files with 183 additions and 120 deletions

View File

@@ -202,8 +202,10 @@ mod tests {
for path in ["/", "/login", "/register"] {
let (status, body) = get(path).await;
assert!(status.is_success(), "{path} returned {status}");
// Penguin UI's navbar, so what identifies it is its Alpine
// state rather than a class this app wrote.
assert!(
body.contains("<header class=\"topbar\">"),
body.contains(r#"x-data="{ mobileMenuIsOpen: false }""#),
"{path} is missing the shared navbar"
);
assert!(
@@ -312,6 +314,8 @@ mod tests {
async fn stylesheet_is_served_once_for_every_page() {
let (status, body) = get("/static/app.css").await;
assert!(status.is_success());
assert!(body.contains(".topbar"));
// The navbar and the alerts are Penguin UI's own Tailwind classes now,
// so what is left in this file is the site's layout.
assert!(body.contains(".form-card"));
}
}