Assert links in the compatibility example
This commit is contained in:
1 parent
08d31bb4d9
commit
6216201d7d
1 file changed
+11
@@ -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"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user