Skip to content

Commit 37949f8

Browse files
cdervclaude
andcommitted
Add smoke tests for Chrome-based diagram rendering and update CI
Add smoke tests exercising mermaid and graphviz rendering through chrome-headless-shell (PDF, Typst, multi-diagram). Remove not_os:linux restrictions from existing mermaid SVG tests since Chrome is now available on all CI platforms. Replace browser-actions/setup-chrome with quarto install chrome-headless-shell in CI workflow. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d58e156 commit 37949f8

8 files changed

Lines changed: 102 additions & 8 deletions

File tree

.github/workflows/test-smokes.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,11 @@ jobs:
212212
id: cache-typst
213213
uses: ./.github/actions/cache-typst
214214

215-
- name: Install Chrome
216-
uses: browser-actions/setup-chrome@latest
215+
- name: Install Chrome Headless Shell
216+
env:
217+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
218+
run: |
219+
quarto install chrome-headless-shell --no-prompt
217220
218221
- name: Setup Julia
219222
uses: julia-actions/setup-julia@v2

tests/docs/smoke-all/2025/11/10/13661.qmd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ format:
1212
use-rsvg-convert: false
1313
_quarto:
1414
tests:
15-
run:
16-
not_os: linux
1715
latex:
1816
printsMessage:
1917
level: INFO

tests/docs/smoke-all/2025/11/14/mermaid-svg-docx.qmd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ format:
55
mermaid-format: svg
66
_quarto:
77
tests:
8-
run:
9-
not_os: linux
108
docx:
119
printsMessage:
1210
level: INFO

tests/docs/smoke-all/2025/11/18/mermaid-gfm-svg.qmd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ format: gfm
44
mermaid-format: svg
55
_quarto:
66
tests:
7-
run:
8-
not_os: linux
97
gfm:
108
ensureFileRegexMatches:
119
- ['img.*mermaid-figure-.*?\.svg'] # Verify markdown image link to SVG
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: "Graphviz to PDF (#11877)"
3+
format: pdf
4+
_quarto:
5+
tests:
6+
pdf:
7+
noErrors: default
8+
---
9+
10+
## Graphviz Diagram
11+
12+
```{dot}
13+
digraph G {
14+
A -> B
15+
B -> C
16+
B -> D
17+
C -> E
18+
D -> E
19+
}
20+
```
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: "Multiple Mermaid Diagrams to PDF (#11877)"
3+
format: pdf
4+
_quarto:
5+
tests:
6+
pdf:
7+
noErrors: default
8+
---
9+
10+
## Flowchart
11+
12+
```{mermaid}
13+
graph TD
14+
A[Start] --> B{Decision}
15+
B -->|Yes| C[Good]
16+
B -->|No| D[Bad]
17+
C --> E[End]
18+
D --> E
19+
```
20+
21+
## Sequence Diagram
22+
23+
```{mermaid}
24+
sequenceDiagram
25+
Alice->>Bob: Hello
26+
Bob-->>Alice: Hi back
27+
Alice->>Bob: How are you?
28+
Bob-->>Alice: Good thanks
29+
```
30+
31+
## Pie Chart
32+
33+
```{mermaid}
34+
pie title Favorite Languages
35+
"TypeScript" : 40
36+
"Lua" : 30
37+
"R" : 20
38+
"Python" : 10
39+
```
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: "Mermaid to PDF (#11877)"
3+
format: pdf
4+
_quarto:
5+
tests:
6+
pdf:
7+
noErrors: default
8+
---
9+
10+
## Mermaid Flowchart
11+
12+
```{mermaid}
13+
graph TD
14+
A[Start] --> B{Decision}
15+
B -->|Yes| C[Good]
16+
B -->|No| D[Bad]
17+
C --> E[End]
18+
D --> E
19+
```
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: "Mermaid to Typst (#11877)"
3+
format: typst
4+
_quarto:
5+
tests:
6+
typst:
7+
noErrors: default
8+
---
9+
10+
## Mermaid Flowchart
11+
12+
```{mermaid}
13+
graph TD
14+
A[Start] --> B{Decision}
15+
B -->|Yes| C[Good]
16+
B -->|No| D[Bad]
17+
C --> E[End]
18+
D --> E
19+
```

0 commit comments

Comments
 (0)