Skip to content

Commit f112028

Browse files
cdervclaude
andcommitted
Verify diagram screenshots in smoke tests, not just error-free render
Check intermediate .tex/.typ files for \includegraphics and image() references to mermaid-figure and dot-figure PNGs. This proves Chrome actually produced screenshot images rather than only checking the render didn't error. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 37949f8 commit f112028

4 files changed

Lines changed: 24 additions & 4 deletions

File tree

tests/docs/smoke-all/2026/02/12/dot-pdf.qmd

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
---
22
title: "Graphviz to PDF (#11877)"
3-
format: pdf
3+
format:
4+
pdf:
5+
keep-tex: true
46
_quarto:
57
tests:
68
pdf:
79
noErrors: default
10+
ensureLatexFileRegexMatches:
11+
- ['\\includegraphics.*dot-figure-1\.png']
12+
- []
813
---
914

1015
## Graphviz Diagram

tests/docs/smoke-all/2026/02/12/mermaid-multi-diagram.qmd

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
---
22
title: "Multiple Mermaid Diagrams to PDF (#11877)"
3-
format: pdf
3+
format:
4+
pdf:
5+
keep-tex: true
46
_quarto:
57
tests:
68
pdf:
79
noErrors: default
10+
ensureLatexFileRegexMatches:
11+
- ['\\includegraphics.*mermaid-figure-1\.png', '\\includegraphics.*mermaid-figure-2\.png', '\\includegraphics.*mermaid-figure-3\.png']
12+
- []
813
---
914

1015
## Flowchart

tests/docs/smoke-all/2026/02/12/mermaid-pdf-default.qmd

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
---
22
title: "Mermaid to PDF (#11877)"
3-
format: pdf
3+
format:
4+
pdf:
5+
keep-tex: true
46
_quarto:
57
tests:
68
pdf:
79
noErrors: default
10+
ensureLatexFileRegexMatches:
11+
- ['\\includegraphics.*mermaid-figure-1\.png']
12+
- []
813
---
914

1015
## Mermaid Flowchart

tests/docs/smoke-all/2026/02/12/mermaid-typst.qmd

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
---
22
title: "Mermaid to Typst (#11877)"
3-
format: typst
3+
format:
4+
typst:
5+
keep-typ: true
46
_quarto:
57
tests:
68
typst:
79
noErrors: default
10+
ensureTypstFileRegexMatches:
11+
- ['image\(.*mermaid-figure-1\.png']
12+
- []
813
---
914

1015
## Mermaid Flowchart

0 commit comments

Comments
 (0)