Assert ORCID badges in the SVG preview
The arXiv preview must contain exactly two PNG data URIs for the author badges and no iD text marker. This covers the SVG half of the ORCID post-processing; the PDF half is covered by the display-list unit test. Test count stays 1084.
This commit is contained in:
1 parent
c4392e72a3
commit
1959b18f82
1 file changed
+6
@@ -20090,6 +20090,12 @@ left & right \\
|
||||
let pages = value["pages"].as_array().expect("pages");
|
||||
let first = pages[0]["svg"].as_str().expect("first svg");
|
||||
let second = pages[1]["svg"].as_str().expect("second svg");
|
||||
assert_eq!(
|
||||
first.matches("data:image/png;base64").count(),
|
||||
2,
|
||||
"expected two ORCID badges"
|
||||
);
|
||||
assert!(!first.contains("iD David"), "ORCID text marker remains");
|
||||
assert!(
|
||||
!first.contains("arXiv Template"),
|
||||
"title page must not show the running header"
|
||||
|
||||
Reference in new issue
Block a user