diff --git a/src/web/builds.rs b/src/web/builds.rs index 77a9b4f03..025f8082c 100644 --- a/src/web/builds.rs +++ b/src/web/builds.rs @@ -274,6 +274,15 @@ mod tests { assert!(rows.is_empty()); + let warning = page + .select_first(".warning") + .expect("missing warning element") + .text_contents(); + + assert!(warning.contains("has not built")); + assert!(warning.contains("queued")); + assert!(warning.contains("open an issue")); + Ok(()) }); } diff --git a/templates/crate/builds.html b/templates/crate/builds.html index 72c97f13c..4d7f52784 100644 --- a/templates/crate/builds.html +++ b/templates/crate/builds.html @@ -30,30 +30,40 @@ {%- block body -%}