web using penguin-ui
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user