From 6216201d7dcfff8360c0fde4eb4ab396326cb87f Mon Sep 17 00:00:00 2001 From: GloamXun Date: Mon, 19 Oct 2026 19:06:27 +0800 Subject: [PATCH] Assert links in the compatibility example --- tests/typeset.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/typeset.rs b/tests/typeset.rs index 07bb9ed..769dcae 100644 --- a/tests/typeset.rs +++ b/tests/typeset.rs @@ -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"), + "compat example lost the ORCID badge" + ); + assert!( + svg.contains(">example"), + "compat example lost the link text" + ); + } } }