Assert links in the compatibility example

This commit is contained in:
gloamxun committed 2026-10-19 19:06:27 +08:00
1 parent 08d31bb4d9
commit 6216201d7d
1 file changed
+11
+11
View File
@@ -58,6 +58,17 @@ fn examples_compile_to_one_a4_page() {
(number(&value, "pageHeightMm") - 297.0).abs() < 0.1,
"{name} height"
);
if name == "compat.tex" {
let svg = page_svg(&value, 0);
assert!(
svg.contains("fill=\"#008000\">iD</text>"),
"compat example lost the ORCID badge"
);
assert!(
svg.contains(">example</text>"),
"compat example lost the link text"
);
}
}
}